summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorAnatoli Papirovski <apapirovski@mac.com>2018-04-18 12:34:04 +0200
committerAnatoli Papirovski <apapirovski@mac.com>2018-04-22 11:06:36 +0200
commit957532ec6122a093ac024183f615604ba11a8d40 (patch)
tree80e742b4b5858cf40a267891e90e1076aa0b08c0 /benchmark
parenta2cf005cef65a6e6d81a3c9610e038251ce9851e (diff)
downloadandroid-node-v8-957532ec6122a093ac024183f615604ba11a8d40.tar.gz
android-node-v8-957532ec6122a093ac024183f615604ba11a8d40.tar.bz2
android-node-v8-957532ec6122a093ac024183f615604ba11a8d40.zip
test: fix long-running http benchmarks
PR-URL: https://github.com/nodejs/node/pull/20125 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/http/cluster.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/http/cluster.js b/benchmark/http/cluster.js
index 56393fa1ab..667e826f16 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);
+ });
});
}