Skip to content

Commit 682d0a9

Browse files
Trotttargos
authored andcommittedMay 1, 2021
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: #31022 PR-URL: #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>
1 parent a800b5b commit 682d0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎benchmark/http/headers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common.js');
44
const http = require('http');
55

66
const bench = common.createBenchmark(main, {
7-
n: [10, 1000],
7+
n: [10, 600],
88
len: [1, 100],
99
duration: 5
1010
});

0 commit comments

Comments
 (0)
Please sign in to comment.