maintenance/benchmarkPurge.php File Reference

Squid purge benchmark script. More...

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).


Detailed Description

Squid purge benchmark script.

Definition in file benchmarkPurge.php.


Function Documentation

benchSquid ( urls,
trials = 1 
)

Run a bunch of URLs through SquidUpdate::purge() to benchmark Squid response times.

Parameters:
$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.

Parameters:
$length int How many urls to add to the array

Definition at line 34 of file benchmarkPurge.php.

References $i, and randomUrl().


Generated on Sat Sep 5 02:08:27 2009 for MediaWiki by  doxygen 1.5.9