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-01-05 06:21:43 +0300
committerRich Trott <rtrott@gmail.com>2021-01-07 08:18:47 +0300
commit1e35d5802a265d738f6fb45b7df1f6141dd6d676 (patch)
tree7746485a6f5aea136eb379dc4c3df7d6ea425af1 /benchmark
parent9ac404716446e8d9a4d26b70cd4f3b2e3adb4bf7 (diff)
benchmark: fix http/headers.js with test-double
The http/headers.js benchmark fails if wrk or autocannon are not installed. This is because the benchmark exceeds the default permissible length for HTTP headers. Reduce the largest benchmarks to fit within the 8192 default as that is what we should be optimizing for. Fixes: https://github.com/nodejs/node/issues/31022 PR-URL: https://github.com/nodejs/node/pull/36794 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/http/headers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/http/headers.js b/benchmark/http/headers.js
index b83ac17e742..a3d2b7810be 100644
--- a/benchmark/http/headers.js
+++ b/benchmark/http/headers.js
@@ -4,7 +4,7 @@ const common = require('../common.js');
const http = require('http');
const bench = common.createBenchmark(main, {
- n: [10, 1000],
+ n: [10, 600],
len: [1, 100],
duration: 5
});