aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-03-27 22:20:37 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-03-27 22:20:37 -0700
commit4274925f833722224fddc0372c9a1e5b7ab1f6a8 (patch)
treec3b1926d3b231917a60ea6b99e7cfdf260bc7db8
parentf0e7739accd8b24ac6d4fe1ddcd6492db5d26015 (diff)
Bugfix11
-rwxr-xr-xtools/profiling/microbenchmarks/bm_diff.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py
index c725d96626..0d21607794 100755
--- a/tools/profiling/microbenchmarks/bm_diff.py
+++ b/tools/profiling/microbenchmarks/bm_diff.py
@@ -33,7 +33,7 @@ import json
import bm_json
import tabulate
import argparse
-import scipy
+from scipy import stats
import subprocess
import multiprocessing
import collections
@@ -137,7 +137,7 @@ class Benchmark:
new = self.samples[True][f]
old = self.samples[False][f]
if not new or not old: continue
- p = scipy.stats.ttest_ind(new, old)
+ p = stats.ttest_ind(new, old)
if p < args.p_threshold:
self.final[f] = avg(new) - avg(old)
return self.final.keys()