class BenchmarkPurge extends Benchmarker {
public function __construct() {
parent::__construct();
- $this->mDescription = "Benchmark the Squid purge functions.";
+ $this->addDescription( 'Benchmark the Squid purge functions.' );
}
public function execute() {
private function benchSquid( $urls, $trials = 1 ) {
$start = microtime( true );
for ( $i = 0; $i < $trials; $i++ ) {
- SquidUpdate::purge( $urls );
+ CdnCacheUpdate::purge( $urls );
}
$delta = microtime( true ) - $start;
$pertrial = $delta / $trials;