Skip to content

Commit 4a09904

Browse files
Trottdanielleadams
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 <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
1 parent 9467aa9 commit 4a09904

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)