Skip to content

Commit 7536c54

Browse files
committed
Fixes
1 parent 904c17f commit 7536c54

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyperformance/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def parse_args():
101101
choices=hook_names,
102102
metavar=f"{', '.join(x for x in hook_names if not x.startswith('_'))}",
103103
help="Apply the given pyperf hook(s) when running each benchmark")
104-
cmd.add_argument("--warmups",
104+
cmd.add_argument("--warmups", type=int, default=None,
105105
help="number of skipped values per run used to warmup the benchmark")
106106
filter_opts(cmd)
107107

pyperformance/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def get_pyperf_opts(options):
247247
if options.hook:
248248
for hook in options.hook:
249249
opts.append('--hook=%s' % hook)
250-
if options.warmup:
251-
opts.append('--warmup=%s' % options.warmup)
250+
if options.warmups is not None:
251+
opts.append('--warmups=%s' % options.warmups)
252252

253253
return opts

0 commit comments

Comments
 (0)