diff --git a/benchmark/http/cluster.js b/benchmark/http/cluster.js index 56393fa1ab0518..667e826f163ba6 100644 --- a/benchmark/http/cluster.js +++ b/benchmark/http/cluster.js @@ -26,7 +26,7 @@ function main({ type, len, c }) { if (workers < 2) return; - setTimeout(function() { + setImmediate(function() { const path = `/${type}/${len}`; bench.http({ @@ -36,6 +36,6 @@ function main({ type, len, c }) { w1.destroy(); w2.destroy(); }); - }, 100); + }); }); } diff --git a/test/sequential/test-benchmark-http.js b/test/sequential/test-benchmark-http.js index e23a4a1753b00d..13d0e4d16aaf8f 100644 --- a/test/sequential/test-benchmark-http.js +++ b/test/sequential/test-benchmark-http.js @@ -18,12 +18,14 @@ runBenchmark('http', 'chunkedEnc=true', 'chunks=0', 'dur=0.1', + 'input=keep-alive', 'key=""', 'len=1', 'method=write', 'n=1', 'res=normal', - 'type=asc' + 'type=asc', + 'value=X-Powered-By' ], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1,