[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Benchmark for Squid purge. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 118 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file maintenance/benchmarks/Benchmarker.php |
BenchmarkPurge:: (6 methods):
__construct()
execute()
benchSquid()
randomUrlList()
randomUrl()
randomTitle()
Class: BenchmarkPurge - X-Ref
Maintenance script that benchmarks Squid purge.__construct() X-Ref |
No description |
execute() X-Ref |
No description |
benchSquid( $urls, $trials = 1 ) X-Ref |
Run a bunch of URLs through SquidUpdate::purge() to benchmark Squid response times. param: array $urls A bunch of URLs to purge param: int $trials How many times to run the test? return: string |
randomUrlList( $length ) X-Ref |
Get an array of randomUrl()'s. param: int $length How many urls to add to the array return: array |
randomUrl() X-Ref |
Return a random URL of the wiki. Not necessarily an actual title in the database, but at least a URL that looks like one. return: string |
randomTitle() X-Ref |
Create a random title string (not necessarily a Title object). For use with randomUrl(). return: string |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |