diff options
author | Anatoli Papirovski <apapirovski@mac.com> | 2018-04-18 12:34:04 +0200 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2018-04-22 11:06:36 +0200 |
commit | 957532ec6122a093ac024183f615604ba11a8d40 (patch) | |
tree | 80e742b4b5858cf40a267891e90e1076aa0b08c0 /benchmark | |
parent | a2cf005cef65a6e6d81a3c9610e038251ce9851e (diff) | |
download | android-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.js | 4 |
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); + }); }); } |