From d7d634bd67d8a126f99e885252d5bf2a4f2a481c Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Thu, 23 Feb 2023 15:10:00 +0100 Subject: [PATCH] benchmark: fix worker startup benchmark It previously called spawnProcess in spawnWorker, which was incorrect. PR-URL: https://github.com/nodejs/node/pull/46680 Reviewed-By: Colin Ihrig Reviewed-By: Chengzhong Wu Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- benchmark/misc/startup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/misc/startup.js b/benchmark/misc/startup.js index c2cf7f2de658be..07c0701d128899 100644 --- a/benchmark/misc/startup.js +++ b/benchmark/misc/startup.js @@ -49,7 +49,7 @@ function spawnWorker(script, bench, state) { bench.start(); } if (state.finished < state.count) { - spawnProcess(script, bench, state); + spawnWorker(script, bench, state); } else { bench.end(state.count); }