Fix JSBench which causes math domain error in run-benchmark script.
authordewei_zhu@apple.com <dewei_zhu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 May 2016 04:58:41 +0000 (04:58 +0000)
committerdewei_zhu@apple.com <dewei_zhu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 May 2016 04:58:41 +0000 (04:58 +0000)
commitf9b08dad079f449155e4452eaff71ea48f616b91
treed6ad688871ed51500babc60d22b3d226d0763ba9
parent7b563eac6998b9d4a511a360d6aece0ba237314d
Fix JSBench which causes math domain error in run-benchmark script.
https://bugs.webkit.org/show_bug.cgi?id=157697
<rdar://problem/26279292>

Reviewed by Ryosuke Niwa.

Some tests of JSBench give time usage to be 0 ms which will causes error while calculating geometric mean.
Also fix a round-off error while calculating stdev.

* Scripts/webkitpy/benchmark_runner/benchmark_results.py:
(BenchmarkResults._format_values):
* Scripts/webkitpy/benchmark_runner/data/patches/JSBench.patch:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@200914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/benchmark_runner/benchmark_results.py
Tools/Scripts/webkitpy/benchmark_runner/data/patches/JSBench.patch