Skip to content

Commit

Permalink
benchmark: fix worker startup benchmark
Browse files Browse the repository at this point in the history
It previously called spawnProcess in spawnWorker, which was
incorrect.

PR-URL: #46680
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
joyeecheung authored and danielleadams committed Apr 5, 2023
1 parent 3538521 commit d7d634b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/misc/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d7d634b

Please sign in to comment.