aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling
diff options
context:
space:
mode:
Diffstat (limited to 'tools/profiling')
-rwxr-xr-xtools/profiling/microbenchmarks/bm_diff.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py
index d81218858e..6b82cbe702 100755
--- a/tools/profiling/microbenchmarks/bm_diff.py
+++ b/tools/profiling/microbenchmarks/bm_diff.py
@@ -137,12 +137,14 @@ class Benchmark:
new = self.samples[True][f]
old = self.samples[False][f]
if not new or not old: continue
- print f, new, old
- p = stats.ttest_ind(new, old)
+ p = stats.ttest_ind(new, old)[1]
if p < args.p_threshold:
self.final[f] = avg(new) - avg(old)
return self.final.keys()
+ def skip(self):
+ return not self.final
+
def row(self, flds):
return [self.final[f] if f in self.final else '' for f in flds]
@@ -176,5 +178,6 @@ fields = [f for f in _INTERESTING if f in really_interesting]
headers = ['Benchmark'] + fields
rows = []
for name in sorted(benchmarks.keys()):
+ if benchmarks[name].skip(): continue
rows.append([name] + benchmarks[name].row(fields))
print tabulate.tabulate(rows, headers=headers, floatfmt='+.2f')