Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2021-04-12 02:57:59 +0300
committerDanielle Adams <adamzdanielle@gmail.com>2022-02-01 07:54:57 +0300
commit4a09904d051d35dcc41aaf9664fa2cddf20afdb0 (patch)
tree9f950d937056d4c8b25e6e0145b429b42869728f /benchmark
parent9467aa9bcf7d5168106dbeed14b7b9b57ce7b987 (diff)
benchmark: simplify http benchmarker regular expression
A non-capturing group inside a capturing group has no effect. Simplify the regular expression. PR-URL: https://github.com/nodejs/node/pull/38206 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/_http-benchmarkers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/_http-benchmarkers.js b/benchmark/_http-benchmarkers.js
index 615579cba52..ec0e80a9e7e 100644
--- a/benchmark/_http-benchmarkers.js
+++ b/benchmark/_http-benchmarkers.js
@@ -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];
}
}