Skip to content

Commit 9d83a4d

Browse files
committed
benchmark: simplify http benchmarker regular expression
A non-capturing group inside a capturing group has no effect. Simplify the regular expression.
1 parent 548cbf0 commit 9d83a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/_http-benchmarkers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class H2LoadBenchmarker {
173173
}
174174

175175
processResults(output) {
176-
const rex = /(\d+(?:\.\d+)) req\/s/;
176+
const rex = /(\d+\.\d+) req\/s/;
177177
return rex.exec(output)[1];
178178
}
179179
}

0 commit comments

Comments
 (0)