Skip to content

Commit 4e5f51d

Browse files
committed
[benchmark] run_smoke tests with new naming
Allow for running of test matching the naming convention proposed in #20334.
1 parent af71924 commit 4e5f51d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/scripts/run_smoke_bench

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_performance(opt_level, old_dir, new_dir, threshold, num_samples,
139139
new_lines = ""
140140

141141
# #,TEST,SAMPLES,MIN(μs),MAX(μs),MEAN(μs),SD(μs),MEDIAN(μs),PEAK_MEMORY(B)
142-
score_re = re.compile(r"(\d+),(\w+),\d+,(\d+)")
142+
score_re = re.compile(r"(\d+),([\w.\-]+),\d+,(\d+)")
143143

144144
while to_test is None or len(to_test) > 0:
145145
tested_benchmarks = set()

benchmark/scripts/run_smoke_bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def log_filename(bench_dir):
9696
new_logf = open(log_filename(new_dir), 'w')
9797

9898
# #,TEST,SAMPLES,MIN(μs),MAX(μs),MEAN(μs),SD(μs),MEDIAN(μs),PEAK_MEMORY(B)
99-
score_re = re.compile(r"(\d+),(\w+),\d+,(\d+)")
99+
score_re = re.compile(r"(\d+),([\w.\-]+),\d+,(\d+)")
100100

101101
while to_test is None or len(to_test) > 0:
102102
tested_benchmarks = set()

0 commit comments

Comments
 (0)