Skip to content
Snippets Groups Projects
Commit 852b7d9f authored by Craig Tiller's avatar Craig Tiller
Browse files

Add debug: somethings going wrong

parent 23e6a8a6
No related branches found
No related tags found
No related merge requests found
...@@ -174,7 +174,10 @@ class Benchmark: ...@@ -174,7 +174,10 @@ class Benchmark:
old_mdn = median(old) old_mdn = median(old)
delta = new_mdn - old_mdn delta = new_mdn - old_mdn
ratio = changed_ratio(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 self.final[f] = delta
return self.final.keys() return self.final.keys()
...@@ -207,7 +210,8 @@ for bm in comparables: ...@@ -207,7 +210,8 @@ for bm in comparables:
benchmarks[name].add_sample(row, False) benchmarks[name].add_sample(row, False)
really_interesting = set() really_interesting = set()
for bm in benchmarks.values(): for name, bm in benchmarks.items():
print name
really_interesting.update(bm.process()) really_interesting.update(bm.process())
fields = [f for f in _INTERESTING if f in really_interesting] fields = [f for f in _INTERESTING if f in really_interesting]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment