aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling/microbenchmarks
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-03-30 08:15:16 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-03-30 08:15:16 -0700
commit852b7d9fdef9472ccef14c8ba83fe62ceb2246b2 (patch)
treea74af0d95cf5643becd8e8e405bde11279fa5d91 /tools/profiling/microbenchmarks
parent23e6a8a67872c97f965345d747a689868b3cb68f (diff)
Add debug: somethings going wrong
Diffstat (limited to 'tools/profiling/microbenchmarks')
-rwxr-xr-xtools/profiling/microbenchmarks/bm_diff.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py
index 2c4e572d12..f1d29ba3c6 100755
--- a/tools/profiling/microbenchmarks/bm_diff.py
+++ b/tools/profiling/microbenchmarks/bm_diff.py
@@ -174,7 +174,10 @@ class Benchmark:
old_mdn = median(old)
delta = new_mdn - old_mdn
ratio = changed_ratio(new_mdn, old_mdn)
- if p < args.p_threshold and abs(delta) > 0.1 and abs(ratio) > 0.1:
+ print 'new=%r old=%r new_mdn=%f old_mdn=%f delta=%f ratio=%f p=%f' % (
+ new, old, new_mdn, old_mdn, delta, ratio, p
+ )
+ if p < args.p_threshold and abs(delta) > 0.1 and abs(ratio) > 0.03:
self.final[f] = delta
return self.final.keys()
@@ -207,7 +210,8 @@ for bm in comparables:
benchmarks[name].add_sample(row, False)
really_interesting = set()
-for bm in benchmarks.values():
+for name, bm in benchmarks.items():
+ print name
really_interesting.update(bm.process())
fields = [f for f in _INTERESTING if f in really_interesting]