|
7 | 7 | parser.add_argument("-b", '--branch', type=str, default="main", required=False)
|
8 | 8 | parser.add_argument('--benchcompare', type=str, help='Compare simd bench with stdsort methods. Requires one of qsort, qselect, partialsort, argsort or argselect')
|
9 | 9 | parser.add_argument("-f", '--filter', type=str, required=False)
|
| 10 | +parser.add_argument("-r", '--repeat', type=int, required=False) |
10 | 11 | args = parser.parse_args()
|
11 | 12 |
|
12 | 13 | if len(sys.argv) == 1:
|
|
15 | 16 | filterb = ""
|
16 | 17 | if args.filter is not None:
|
17 | 18 | filterb = args.filter
|
| 19 | +repeatnum = 1 |
| 20 | +if args.repeat is not None: |
| 21 | + repeatnum = args.repeat |
18 | 22 |
|
19 | 23 | if args.benchcompare:
|
20 | 24 | baseline = ""
|
|
43 | 47 | else:
|
44 | 48 | parser.print_help(sys.stderr)
|
45 | 49 | parser.error("ERROR: Unknown argument '%s'" % args.benchcompare)
|
46 |
| - rc = subprocess.check_call("./scripts/bench-compare.sh '%s' '%s'" % (baseline, contender), shell=True) |
| 50 | + rc = subprocess.check_call("./scripts/bench-compare.sh '%s' '%s' '%d'" % (baseline, contender, repeatnum), shell=True) |
47 | 51 |
|
48 | 52 | if args.branchcompare:
|
49 | 53 | branch = args.branch
|
50 | 54 | if args.filter is None:
|
51 |
| - rc = subprocess.check_call("./scripts/branch-compare.sh '%s'" % (branch), shell=True) |
| 55 | + rc = subprocess.check_call("./scripts/branch-compare.sh '%s' '%d'" % (branch, repeatnum), shell=True) |
52 | 56 | else:
|
53 |
| - rc = subprocess.check_call("./scripts/branch-compare.sh '%s' '%s'" % (branch, args.filter), shell=True) |
| 57 | + rc = subprocess.check_call("./scripts/branch-compare.sh '%s' '%s' '%d'" % (branch, args.filter, repeatnum), shell=True) |
0 commit comments