diff options
author | Anton Kirilov <anton.kirilov@linaro.org> | 2015-11-25 12:46:18 +0000 |
---|---|---|
committer | Alexandre Rames <alexandre.rames@linaro.org> | 2015-11-26 11:55:42 +0000 |
commit | 0aa1200ee62d91783d157562e8a43f5bd3ba31da (patch) | |
tree | f2f82c8bae6c46a95622d227b30c5969c007dd35 /compare.py | |
parent | f2c567f5ea0ac769c439318a89ae68fa7d6de92c (diff) | |
download | art-testing-0aa1200ee62d91783d157562e8a43f5bd3ba31da.tar.gz |
Miscellaneous cleanup after recent compilation stats changes.
Change-Id: If1cba56d7831d10032ea45efb88b85242be325e5
Diffstat (limited to 'compare.py')
-rwxr-xr-x | compare.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -62,7 +62,7 @@ def FilterSignificantChanges(in_1, in_2, diff_threshold, dev_threshold): for bench in benchmarks: m1, M1, ave1, d1, dp1 = utils_stats.ComputeStats(in_1[bench]) m2, M2, ave2, d2, dp2 = utils_stats.ComputeStats(in_2[bench]) - diff = (ave2 - ave1) / ave1 * 100 if ave1 != 0 else float("inf") + diff = utils_stats.GetRelativeDiff(ave1, ave2) if abs(diff) >= diff_threshold \ or dp1 >= dev_threshold \ or dp2 >= dev_threshold: @@ -82,7 +82,7 @@ def OrderResultsByDifference(in_1, in_2): for bench in benchmarks: m1, M1, ave1, d1, dp1 = utils_stats.ComputeStats(in_1[bench]) m2, M2, ave2, d2, dp2 = utils_stats.ComputeStats(in_2[bench]) - diff = (ave2 - ave1) / ave1 * 100 if ave1 != 0 else float("inf") + diff = utils_stats.GetRelativeDiff(ave1, ave2) if diff > 0: regressions[bench] = diff else: |