Skip to content

Commit fa6654c

Browse files
author
y-p
committed
BLD: add --ncalls to test_perf, to override excessive runtimes in vbench
1 parent 4b1869c commit fa6654c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

vb_suite/test_perf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@
8787
default=3,
8888
type=int,
8989
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')
9096
parser.add_argument('-N', '--hrepeats',
9197
metavar="N",
9298
dest='hrepeats',
@@ -224,7 +230,6 @@ def profile_head_single(benchmarks):
224230

225231
def profile_head(benchmarks):
226232

227-
228233
ss= [profile_head_single(benchmarks) for i in range(args.hrepeats)]
229234

230235
results = DataFrame(ss)
@@ -320,6 +325,8 @@ def main():
320325

321326
for b in benchmarks:
322327
b.repeat = args.repeats
328+
if args.ncalls:
329+
b.ncalls = args.ncalls
323330

324331
if benchmarks:
325332
if args.head:

0 commit comments

Comments
 (0)