X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fbenchmarks%2Fbench_HTTP_HTTPS.php;h=5b64beeb49db777bd26f46d4e687b34447ae3b57;hb=ba913218087b69a8e9bc4350bce6604fc53b683e;hp=15692348653404335d77f87f35fb3c97f5ff6f13;hpb=7308c4d8de265fb0e176516e37e386a6c4f99c06;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/benchmarks/bench_HTTP_HTTPS.php b/maintenance/benchmarks/bench_HTTP_HTTPS.php index 1569234865..5b64beeb49 100644 --- a/maintenance/benchmarks/bench_HTTP_HTTPS.php +++ b/maintenance/benchmarks/bench_HTTP_HTTPS.php @@ -34,19 +34,19 @@ require_once __DIR__ . '/Benchmarker.php'; class BenchHttpHttps extends Benchmarker { public function __construct() { parent::__construct(); - $this->mDescription = "Benchmark HTTP request vs HTTPS request."; + $this->addDescription( 'Benchmark HTTP request vs HTTPS request.' ); } public function execute() { - $this->bench( array( - array( 'function' => array( $this, 'getHTTP' ) ), - array( 'function' => array( $this, 'getHTTPS' ) ), - ) ); + $this->bench( [ + [ 'function' => [ $this, 'getHTTP' ] ], + [ 'function' => [ $this, 'getHTTPS' ] ], + ] ); print $this->getFormattedResults(); } static function doRequest( $proto ) { - Http::get( "$proto://localhost/", array(), __METHOD__ ); + Http::get( "$proto://localhost/", [], __METHOD__ ); } // bench function 1