Skip to content

Commit

Permalink
fix: Support sub-nanosecond precision on Cargo benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet authored May 13, 2024
1 parent 8e74972 commit 5a8f9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function extractCargoResult(output: string): BenchmarkResult[] {
const ret = [];
// Example:
// test bench_fib_20 ... bench: 37,174 ns/iter (+/- 7,527)
const reExtract = /^test (.+)\s+\.\.\. bench:\s+([0-9,]+) ns\/iter \(\+\/- ([0-9,]+)\)$/;
const reExtract = /^test (.+)\s+\.\.\. bench:\s+([0-9,.]+) ns\/iter \(\+\/- ([0-9,.]+)\)$/;
const reComma = /,/g;

for (const line of lines) {
Expand Down

0 comments on commit 5a8f9bf

Please sign in to comment.