Skip to content

Commit

Permalink
child_process: use setImmediate for IPC bench
Browse files Browse the repository at this point in the history
  • Loading branch information
ypresto committed Jan 1, 2017
1 parent de82d97 commit f466ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/child_process/child-process-read-ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (process.argv[2] === 'child') {
const send = () => {
while (process.send(msg));
// Wait: backlog of unsent messages exceeds threshold
setTimeout(send, 20);
setImmediate(send);
};
send();
} else {
Expand Down

0 comments on commit f466ac7

Please sign in to comment.