diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-13 08:43:51 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-13 08:43:51 -0700 |
commit | 59bf91c72e4f8d249a004e4ac7879bec27be8bfd (patch) | |
tree | 19cd562d4692a259751799625a6140a4fdeced0a | |
parent | 08abb44239e94f0764fd0f9cf53c7d052efce67d (diff) |
tweaks, fix bug
-rwxr-xr-x | tools/profiling/microbenchmarks/bm_diff.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py index 5bc0eacd22..4fa4869b64 100755 --- a/tools/profiling/microbenchmarks/bm_diff.py +++ b/tools/profiling/microbenchmarks/bm_diff.py @@ -94,8 +94,8 @@ argp.add_argument('-t', '--track', help='Which metrics to 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=5) -argp.add_argument('-l', '--loops', type=int, default=5) +argp.add_argument('-r', '--repetitions', type=int, default=3) +argp.add_argument('-l', '--loops', type=int, default=7) argp.add_argument('-p', '--p_threshold', type=float, default=0.01) argp.add_argument('-j', '--jobs', type=int, default=multiprocessing.cpu_count()) args = argp.parse_args() @@ -190,7 +190,7 @@ class Benchmark: benchmarks = collections.defaultdict(Benchmark) for bm in args.benchmarks: - for loop in args.loops: + for loop in range(0, args.loops): with open('%s.counters.new.%d.json' % (bm, loop)) as f: js_new_ctr = json.loads(f.read()) with open('%s.opt.new.%d.json' % (bm, loop)) as f: |