Skip to content

Commit 8a316de

Browse files
authored
[benchmark] Fix: random fail Benchmark_O.test.md
When the two measured samples from `Ackermann` happen to have the exact same value, the delta compression produces a comma instead of number. Accept both forms. https://bugs.swift.org/browse/SR-9544
1 parent b697b2c commit 8a316de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/benchmark/Benchmark_O.test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ MEASUREENV: ICS {{[0-9]+}} - {{[0-9]+}} = {{[0-9]+}}
163163
MEASUREENV: VCS {{[0-9]+}} - {{[0-9]+}} = {{[0-9]+}}
164164
RUNJUSTONCE-LABEL: 1,Ackermann
165165
RUNJUSTONCE-NOT: 1,Ackermann
166-
LOGFORMAT: ,{{[0-9]+}},{{[0-9]+}},,{{[0-9]+}},{{[0-9]+}}
166+
LOGFORMAT: ,{{[0-9]+}},{{[0-9]+}},,{{[0-9]*}}{{,?}},{{[0-9]+}}
167167
LOGVERBOSE-LABEL: Running AngryPhonebook
168168
LOGVERBOSE: Collecting 2 samples.
169169
````

0 commit comments

Comments
 (0)