diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-19 14:37:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 14:37:09 -0700 |
commit | 48ca9e5ff4c144c6079240f679604438d58723b4 (patch) | |
tree | 44f98da157a8815addd949866f37efe2578270ee | |
parent | 7b692ca67b69eb322c774845d639686bbcceb959 (diff) | |
parent | e530845d91c118e3176d116d58420c9e3afa44b0 (diff) |
Merge pull request #10731 from ctiller/xyzw
Allow >100% increases, add more jobs to reduce noise
-rwxr-xr-x | tools/profiling/microbenchmarks/bm_diff.py | 3 | ||||
-rw-r--r-- | tools/profiling/microbenchmarks/speedup.py | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py index f1b6ef1ab9..09b62ae1c9 100755 --- a/tools/profiling/microbenchmarks/bm_diff.py +++ b/tools/profiling/microbenchmarks/bm_diff.py @@ -98,7 +98,7 @@ argp.add_argument('-t', '--track', argp.add_argument('-b', '--benchmarks', nargs='+', choices=_AVAILABLE_BENCHMARK_TESTS, default=['bm_cq']) argp.add_argument('-d', '--diff_base', type=str) argp.add_argument('-r', '--repetitions', type=int, default=1) -argp.add_argument('-l', '--loops', type=int, default=12) +argp.add_argument('-l', '--loops', type=int, default=20) argp.add_argument('-j', '--jobs', type=int, default=multiprocessing.cpu_count()) args = argp.parse_args() @@ -247,4 +247,3 @@ def finalize(): eintr_be_gone(finalize) - diff --git a/tools/profiling/microbenchmarks/speedup.py b/tools/profiling/microbenchmarks/speedup.py index 8f9023d2c8..5a1ed3f2cf 100644 --- a/tools/profiling/microbenchmarks/speedup.py +++ b/tools/profiling/microbenchmarks/speedup.py @@ -30,7 +30,7 @@ from scipy import stats import math -_THRESHOLD = 0.0001 +_THRESHOLD = 0.00001 def scale(a, mul): return [x*mul for x in a] @@ -53,7 +53,7 @@ def speedup(new, old): return -(pct - 1) else: pct = 1 - while pct < 101: + while pct < 100000: sp, pp = cmp(new, scale(old, 1 + pct/100.0)) if sp < 0: break if pp > _THRESHOLD: break |