File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments