aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling/microbenchmarks
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-04-13 22:06:25 -0700
committerGravatar GitHub <noreply@github.com>2017-04-13 22:06:25 -0700
commit964647729e22d3e2fddf11409191e61fe8d1a971 (patch)
treeac3b5b923e7f8c6a9c7cc66b33fcd21beb99e5e4 /tools/profiling/microbenchmarks
parent59bf91c72e4f8d249a004e4ac7879bec27be8bfd (diff)
Update bm_diff.py
Diffstat (limited to 'tools/profiling/microbenchmarks')
-rwxr-xr-xtools/profiling/microbenchmarks/bm_diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py
index 4fa4869b64..4f21a76c61 100755
--- a/tools/profiling/microbenchmarks/bm_diff.py
+++ b/tools/profiling/microbenchmarks/bm_diff.py
@@ -176,7 +176,7 @@ class Benchmark:
mdn_diff = abs(median(new) - median(old))
print '%s: new=%r old=%r mdn_diff=%r' % (f, new, old, mdn_diff)
s = speedup.speedup(new, old)
- if s and mdn_diff > 0.5:
+ if abs(s) > 3 and mdn_diff > 0.5:
self.final[f] = '%+d%%' % s
return self.final.keys()