Skip to content

Commit 522c112

Browse files
author
y-p
committed
BLD: test_perf, add -n, number of vb runs to average results over
1 parent 97db5db commit 522c112

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vb_suite/test_perf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
default=1234,
8181
type=int,
8282
help='integer value to seed PRNG with')
83+
parser.add_argument('-n', '--repeats',
84+
metavar="N",
85+
dest='repeats',
86+
default=3,
87+
type=int,
88+
help='number of times to run each vbench, result value is the average')
8389

8490

8591
def get_results_df(db, rev):
@@ -255,6 +261,9 @@ def main():
255261

256262
benchmarks = [x for x in benchmarks if re.search(args.regex,x.name)]
257263

264+
for b in benchmarks:
265+
b.repeat = args.repeats
266+
258267
if args.head:
259268
profile_head(benchmarks)
260269
else:

0 commit comments

Comments
 (0)