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:
authorPeter Marshall <p.s.marshall0@gmail.com>2017-06-30 14:41:39 +0300
committerJames M Snell <jasnell@gmail.com>2017-09-20 17:55:25 +0300
commit142d2ed057bcd77f4f7126c25fb089d11bebfe11 (patch)
treef9658dbd400661bdba4aedb6076f248e3b7b7fbb /benchmark
parentf20fb4ce4095241ce9526d7aef3138755af8e107 (diff)
benchmark: use smaller n value in some http tests
PR-URL: https://github.com/nodejs/node/pull/14002 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/http/check_invalid_header_char.js2
-rw-r--r--benchmark/http/check_is_http_token.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/http/check_invalid_header_char.js b/benchmark/http/check_invalid_header_char.js
index bef44e63167..7b9c08bd17c 100644
--- a/benchmark/http/check_invalid_header_char.js
+++ b/benchmark/http/check_invalid_header_char.js
@@ -27,7 +27,7 @@ const bench = common.createBenchmark(main, {
'foo\nbar',
'\x7F'
],
- n: [5e8],
+ n: [1e6],
});
function main(conf) {
diff --git a/benchmark/http/check_is_http_token.js b/benchmark/http/check_is_http_token.js
index a317e05a4a1..9e0b8279b58 100644
--- a/benchmark/http/check_is_http_token.js
+++ b/benchmark/http/check_is_http_token.js
@@ -37,7 +37,7 @@ const bench = common.createBenchmark(main, {
':alternate-protocol', // fast bailout
'alternate-protocol:' // slow bailout
],
- n: [5e8],
+ n: [1e6],
});
function main(conf) {