From 4274925f833722224fddc0372c9a1e5b7ab1f6a8 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 27 Mar 2017 22:20:37 -0700 Subject: [PATCH] Bugfix11 --- tools/profiling/microbenchmarks/bm_diff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py index c725d96626b..0d216077943 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()