Allow >100% increases, add more jobs to reduce noise

pull/10731/head
Craig Tiller 8 years ago
parent 7366fe6df3
commit ad7f066b16
  1. 3
      tools/profiling/microbenchmarks/bm_diff.py
  2. 2
      tools/profiling/microbenchmarks/speedup.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)

@ -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

Loading…
Cancel
Save