X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fbenchmarks%2Fbench_HTTP_HTTPS.php;h=0e3cd73d0cd1b71281627346b8bc7e1ac5af0f99;hb=d1000765e7ee710bf892e3772afdabfb5f6b1f6c;hp=5b64beeb49db777bd26f46d4e687b34447ae3b57;hpb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/benchmarks/bench_HTTP_HTTPS.php b/maintenance/benchmarks/bench_HTTP_HTTPS.php index 5b64beeb49..0e3cd73d0c 100644 --- a/maintenance/benchmarks/bench_HTTP_HTTPS.php +++ b/maintenance/benchmarks/bench_HTTP_HTTPS.php @@ -42,20 +42,19 @@ 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' ); } }