aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-04-13 08:43:51 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-04-13 08:43:51 -0700
commit59bf91c72e4f8d249a004e4ac7879bec27be8bfd (patch)
tree19cd562d4692a259751799625a6140a4fdeced0a /tools/profiling
parent08abb44239e94f0764fd0f9cf53c7d052efce67d (diff)
tweaks, fix bug
Diffstat (limited to 'tools/profiling')
-rwxr-xr-xtools/profiling/microbenchmarks/bm_diff.py6
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: