Go to the source code of this file.
Functions | |
| benchSquid ($urls, $trials=1) | |
| Run a bunch of URLs through SquidUpdate::purge() to benchmark Squid response times. | |
| randomUrlList ($length) | |
| Get an array of randomUrl()'s. | |
| randomUrl () | |
| Return a random URL of the wiki. | |
| randomTitle () | |
| Create a random title string (not necessarily a Title object). | |
Definition in file benchmarkPurge.php.
| benchSquid | ( | $ | urls, | |
| $ | trials = 1 | |||
| ) |
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 18 of file benchmarkPurge.php.
References $i, $start, $urls, SquidUpdate::purge(), and wfTime().
| randomTitle | ( | ) |
Create a random title string (not necessarily a Title object).
For use with randomUrl().
Definition at line 55 of file benchmarkPurge.php.
References $i.
Referenced by randomUrl().
| randomUrl | ( | ) |
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 46 of file benchmarkPurge.php.
References $wgArticlePath, $wgServer, and randomTitle().
Referenced by randomUrlList().
| randomUrlList | ( | $ | length | ) |
Get an array of randomUrl()'s.
| $length | int How many urls to add to the array |
Definition at line 34 of file benchmarkPurge.php.
References $i, and randomUrl().
1.5.9