MediaWiki
REL1_22
|
Maintenance script that benchmarks Squid purge. More...
Public Member Functions | |
__construct () | |
execute () | |
Private Member Functions | |
benchSquid ($urls, $trials=1) | |
Run a bunch of URLs through SquidUpdate::purge() to benchmark Squid response times. | |
randomTitle () | |
Create a random title string (not necessarily a Title object). | |
randomUrl () | |
Return a random URL of the wiki. | |
randomUrlList ($length) | |
Get an array of randomUrl()'s. |
Maintenance script that benchmarks Squid purge.
Definition at line 31 of file benchmarkPurge.php.
Reimplemented from Benchmarker.
Definition at line 33 of file benchmarkPurge.php.
BenchmarkPurge::benchSquid | ( | $ | urls, |
$ | trials = 1 |
||
) | [private] |
Run a bunch of URLs through SquidUpdate::purge() to benchmark Squid response times.
$urls | array A bunch of URLs to purge |
$trials | int How many times to run the test? |
Definition at line 64 of file benchmarkPurge.php.
References $urls, and SquidUpdate\purge().
Referenced by execute().
Reimplemented from Maintenance.
Definition at line 38 of file benchmarkPurge.php.
References $urls, array(), as, benchSquid(), Maintenance\error(), Maintenance\getOption(), global, Maintenance\hasOption(), Maintenance\output(), and randomUrlList().
BenchmarkPurge::randomTitle | ( | ) | [private] |
Create a random title string (not necessarily a Title object).
For use with randomUrl().
Definition at line 104 of file benchmarkPurge.php.
Referenced by randomUrl().
BenchmarkPurge::randomUrl | ( | ) | [private] |
Return a random URL of the wiki.
Not necessarily an actual title in the database, but at least a URL that looks like one.
Definition at line 94 of file benchmarkPurge.php.
References $wgArticlePath, global, and randomTitle().
Referenced by randomUrlList().
BenchmarkPurge::randomUrlList | ( | $ | length | ) | [private] |
Get an array of randomUrl()'s.
$length | int How many urls to add to the array |
Definition at line 81 of file benchmarkPurge.php.
References array(), and randomUrl().
Referenced by execute().