diff --git a/src/extract.ts b/src/extract.ts index 84a1e9b8b..9ada1d7a8 100644 --- a/src/extract.ts +++ b/src/extract.ts @@ -178,7 +178,7 @@ function extractCargoResult(output: string): BenchmarkResult[] { const ret = []; // Example: // test bench_fib_20 ... bench: 37,174 ns/iter (+/- 7,527) - const reExtract = /^test ([\w/]+)\s+\.\.\. bench:\s+([0-9,]+) ns\/iter \(\+\/- ([0-9,]+)\)$/; + const reExtract = /^test ([\w/]+)\s+\.\.\. bench:\s+([0-9,]+) ns\/iter \(\+\/- ([0-9,]+)\)(?: = \d+ MB\/s)?$/; const reComma = /,/g; for (const line of lines) {