We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec9e291 commit 904c17fCopy full SHA for 904c17f
pyperformance/cli.py
@@ -101,6 +101,8 @@ def parse_args():
101
choices=hook_names,
102
metavar=f"{', '.join(x for x in hook_names if not x.startswith('_'))}",
103
help="Apply the given pyperf hook(s) when running each benchmark")
104
+ cmd.add_argument("--warmups",
105
+ help="number of skipped values per run used to warmup the benchmark")
106
filter_opts(cmd)
107
108
# show
pyperformance/run.py
@@ -247,5 +247,7 @@ def get_pyperf_opts(options):
247
if options.hook:
248
for hook in options.hook:
249
opts.append('--hook=%s' % hook)
250
+ if options.warmup:
251
+ opts.append('--warmup=%s' % options.warmup)
252
253
return opts
0 commit comments