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 <cjihrig@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Joyee Cheung authored and Danielle Adams committed 2023-04-05 12:52:24 -04:00
1 parent 3538521bf6
commit d7d634bd67
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}