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
committerMichaël Zasso <targos@protonmail.com>2021-05-01 13:12:50 +0300
commit682d0a92dbfb452e8e752a1cc75ab01d3a5dfd7d (patch)
treec73f5ce927a3d67ac97e0adf285d89871b4af9db /benchmark
parenta800b5b6986f53b1eec06b5e39f4f9e06f949ea7 (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
});