diff options
author | Craig Tiller <ctiller@google.com> | 2017-03-27 23:06:10 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-03-27 23:06:10 -0700 |
commit | a87b138187d5127a4f193072f271ae2121b38a65 (patch) | |
tree | 1e346fdc103b9729e0a13512b43ff8721ce40fbc /tools/profiling | |
parent | 4efb5e16dce615b8726cccbbcad4e9d12257b783 (diff) |
Bugfix14
Diffstat (limited to 'tools/profiling')
-rwxr-xr-x | tools/profiling/microbenchmarks/bm_diff.py | 7 |
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') |