Skip to content

Commit fa84353

Browse files
Trotttargos
authored andcommitted
benchmark: simplify http benchmarker regular expression
A non-capturing group inside a capturing group has no effect. Simplify the regular expression. PR-URL: #38206 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ricky Zhou <[email protected]>
1 parent 07353e9 commit fa84353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/_http-benchmarkers.js

+1-1
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)