|
MediaWiki
REL1_19
|


Public Member Functions | |
| __construct () | |
| Default constructor. | |
| execute () | |
| Do the actual work. | |
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. | |
Definition at line 26 of file benchmarkPurge.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Benchmarker.
Definition at line 28 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 59 of file benchmarkPurge.php.
References $urls, SquidUpdate\purge(), and wfTime().
Referenced by execute().


Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 33 of file benchmarkPurge.php.
References $urls, $wgSquidServers, $wgUseSquid, benchSquid(), Maintenance\error(), Maintenance\getOption(), 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 99 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 89 of file benchmarkPurge.php.
References $wgArticlePath, $wgServer, 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 76 of file benchmarkPurge.php.
References randomUrl().
Referenced by execute().

