benchmarks: Report more metrics (min/max/median)
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 19 Apr 2017 23:46:13 +0000 (16:46 -0700)
committerTim Starling <tstarling@wikimedia.org>
Thu, 20 Apr 2017 04:54:32 +0000 (04:54 +0000)
commitfa3f8e1fd520db1fb69c332d0b5336ec5c027e3d
tree50dcc225b6288c3f3174cee456ca07c833da7c51
parentdcc8b7e4cee8c08a6bce8f795ebf1b07cece73e6
benchmarks: Report more metrics (min/max/median)

Add minimum, maximum, median to the report in addition to the mean (average)
which was already there. Based on benchmarkTidy.php from I254793fc5.

Example output:

> Delete
>    times: 10
>    total:   7.47ms
>      min:   0.53ms
>   median:   0.74ms
>     mean:   0.75ms
>      max:   1.21ms
>
> Truncate
>    times: 10
>    total:  72.38ms
>      min:   1.37ms
>   median:   8.32ms
>     mean:   7.24ms
>      max:  15.73ms

Change-Id: Ifd3064a3621e07f55505490403189cb47022c6c7
maintenance/benchmarks/Benchmarker.php
maintenance/benchmarks/bench_HTTP_HTTPS.php
maintenance/benchmarks/bench_Wikimedia_base_convert.php
maintenance/benchmarks/bench_delete_truncate.php
maintenance/benchmarks/bench_if_switch.php
maintenance/benchmarks/bench_strtr_str_replace.php
maintenance/benchmarks/bench_utf8_title_check.php
maintenance/benchmarks/bench_wfIsWindows.php