aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-03-28 08:28:32 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-03-28 08:28:32 -0700
commit50b7fc9b241730d238c3143c5d9b98e6ef9afe23 (patch)
treed3ffbd3bab2e1c0b4560b762d55af71f5e4e32ee /tools/profiling
parentd3c28275f506b4178ed8ad30e55512528048f090 (diff)
More discriminating
Diffstat (limited to 'tools/profiling')
-rwxr-xr-xtools/profiling/microbenchmarks/bm_diff.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py
index 5c5b6207a4..bc2baaba5e 100755
--- a/tools/profiling/microbenchmarks/bm_diff.py
+++ b/tools/profiling/microbenchmarks/bm_diff.py
@@ -148,8 +148,9 @@ class Benchmark:
old = self.samples[False][f]
if not new or not old: continue
p = stats.ttest_ind(new, old)[1]
- if p < args.p_threshold:
- self.final[f] = avg(new) - avg(old)
+ delta = avg(new) - avg(old)
+ if p < args.p_threshold and abs(delta) > 0.1:
+ self.final[f] = delta
return self.final.keys()
def skip(self):