mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
3538521bf6
commit
d7d634bd67
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user