Skip to content

Commit f466ac7

Browse files
committed
child_process: use setImmediate for IPC bench
1 parent de82d97 commit f466ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/child_process/child-process-read-ipc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if (process.argv[2] === 'child') {
55
const send = () => {
66
while (process.send(msg));
77
// Wait: backlog of unsent messages exceeds threshold
8-
setTimeout(send, 20);
8+
setImmediate(send);
99
};
1010
send();
1111
} else {

0 commit comments

Comments
 (0)