File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 87
87
default = 3 ,
88
88
type = int ,
89
89
help = 'number of times to run each vbench, result value is the average' )
90
+ parser .add_argument ('-c' , '--ncalls' ,
91
+ metavar = "N" ,
92
+ dest = 'ncalls' ,
93
+ default = 3 ,
94
+ type = int ,
95
+ help = 'number of calls to in each repetition of a vbench' )
90
96
parser .add_argument ('-N' , '--hrepeats' ,
91
97
metavar = "N" ,
92
98
dest = 'hrepeats' ,
@@ -224,7 +230,6 @@ def profile_head_single(benchmarks):
224
230
225
231
def profile_head (benchmarks ):
226
232
227
-
228
233
ss = [profile_head_single (benchmarks ) for i in range (args .hrepeats )]
229
234
230
235
results = DataFrame (ss )
@@ -320,6 +325,8 @@ def main():
320
325
321
326
for b in benchmarks :
322
327
b .repeat = args .repeats
328
+ if args .ncalls :
329
+ b .ncalls = args .ncalls
323
330
324
331
if benchmarks :
325
332
if args .head :
You can’t perform that action at this time.
0 commit comments