X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fbenchmarks%2Fbench_if_switch.php;h=843ef7cd5984caad6a8c52d0340f41e654e641db;hp=46c9d39bc7238f2d454126f102544cb44ba7bfcf;hb=89539f2aa1b158fdcc703ad053e2580cb97a6385;hpb=f9d7d3b8561dab3ddfd8798a77a5b72e03ac8c2b diff --git a/maintenance/benchmarks/bench_if_switch.php b/maintenance/benchmarks/bench_if_switch.php index 46c9d39bc7..843ef7cd59 100644 --- a/maintenance/benchmarks/bench_if_switch.php +++ b/maintenance/benchmarks/bench_if_switch.php @@ -42,11 +42,10 @@ class BenchIfSwitch extends Benchmarker { [ 'function' => [ $this, 'doElseIf' ] ], [ 'function' => [ $this, 'doSwitch' ] ], ] ); - print $this->getFormattedResults(); } // bench function 1 - function doElseIf() { + protected function doElseIf() { $a = 'z'; if ( $a == 'a' ) { } elseif ( $a == 'b' ) { @@ -69,7 +68,7 @@ class BenchIfSwitch extends Benchmarker { } // bench function 2 - function doSwitch() { + protected function doSwitch() { $a = 'z'; switch ( $a ) { case 'b':