Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
child_process: use setImmediate for IPC bench
  • Loading branch information
ypresto committed Jan 1, 2017
commit f466ac7db8bf94590bcc91e7e2246d7be90f415b
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