X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fbenchmarks%2Fbench_HTTP_HTTPS.php;h=5e1feb739bf1e3f35dda140aedde11438fccf72c;hb=b2017a11a8bfe09fc6d9ad975022f87aae450ccf;hp=5b64beeb49db777bd26f46d4e687b34447ae3b57;hpb=adae996840b9e782f6e14b21c433a83e37c3a74e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/benchmarks/bench_HTTP_HTTPS.php b/maintenance/benchmarks/bench_HTTP_HTTPS.php index 5b64beeb49..5e1feb739b 100644 --- a/maintenance/benchmarks/bench_HTTP_HTTPS.php +++ b/maintenance/benchmarks/bench_HTTP_HTTPS.php @@ -42,23 +42,22 @@ class BenchHttpHttps extends Benchmarker { [ 'function' => [ $this, 'getHTTP' ] ], [ 'function' => [ $this, 'getHTTPS' ] ], ] ); - print $this->getFormattedResults(); } - static function doRequest( $proto ) { + private function doRequest( $proto ) { Http::get( "$proto://localhost/", [], __METHOD__ ); } // bench function 1 - function getHTTP() { + protected function getHTTP() { $this->doRequest( 'http' ); } // bench function 2 - function getHTTPS() { + protected function getHTTPS() { $this->doRequest( 'https' ); } } -$maintClass = 'BenchHttpHttps'; +$maintClass = BenchHttpHttps::class; require_once RUN_MAINTENANCE_IF_MAIN;