aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling/microbenchmarks/bm_diff/bm_speedup.py
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2017-05-09 16:59:17 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2017-05-10 16:22:54 -0700
commit48d973a27603c14db440336da25af1315d47b1e6 (patch)
tree8cbdf1135261bc5164b87c28e1a189bb27200fb1 /tools/profiling/microbenchmarks/bm_diff/bm_speedup.py
parent9aba7fef8d53ec9ddc540dcd81a679ed720b7e6b (diff)
Add readme and flags
Diffstat (limited to 'tools/profiling/microbenchmarks/bm_diff/bm_speedup.py')
-rwxr-xr-xtools/profiling/microbenchmarks/bm_diff/bm_speedup.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/profiling/microbenchmarks/bm_diff/bm_speedup.py b/tools/profiling/microbenchmarks/bm_diff/bm_speedup.py
index fb6622760b..99f1a073f5 100755
--- a/tools/profiling/microbenchmarks/bm_diff/bm_speedup.py
+++ b/tools/profiling/microbenchmarks/bm_diff/bm_speedup.py
@@ -44,7 +44,6 @@ def cmp(a, b):
def speedup(new, old):
if (len(set(new))) == 1 and new == old: return 0
s0, p0 = cmp(new, old)
- print s0, p0
if math.isnan(p0): return 0
if s0 == 0: return 0
if p0 > _THRESHOLD: return 0
@@ -52,7 +51,6 @@ def speedup(new, old):
pct = 1
while pct < 101:
sp, pp = cmp(new, scale(old, 1 - pct/100.0))
- print sp, pp
if sp > 0: break
if pp > _THRESHOLD: break
pct += 1
@@ -61,7 +59,6 @@ def speedup(new, old):
pct = 1
while pct < 100000:
sp, pp = cmp(new, scale(old, 1 + pct/100.0))
- print sp, pp
if sp < 0: break
if pp > _THRESHOLD: break
pct += 1