Merge "Add phpdoc for some ApiQueryInfo properties"
[lhc/web/wiklou.git] / maintenance / benchmarks / benchmarkPurge.php
index 42c1eb7..e67d226 100644 (file)
@@ -31,7 +31,7 @@ require_once __DIR__ . '/Benchmarker.php';
 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() {
@@ -63,7 +63,7 @@ class BenchmarkPurge extends Benchmarker {
        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;