Skip to content

Commit

Permalink
benchmark: simplify http benchmarker regular expression
Browse files Browse the repository at this point in the history
A non-capturing group inside a capturing group has no effect. Simplify
the regular expression.
  • Loading branch information
Trott committed Apr 11, 2021
1 parent 548cbf0 commit 9d83a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/_http-benchmarkers.js
Expand Up @@ -173,7 +173,7 @@ class H2LoadBenchmarker {
}

processResults(output) {
const rex = /(\d+(?:\.\d+)) req\/s/;
const rex = /(\d+\.\d+) req\/s/;
return rex.exec(output)[1];
}
}
Expand Down

0 comments on commit 9d83a4d

Please sign in to comment.