Skip to content

Commit 58f6cc0

Browse files
committed
child_process: fix IPC benchmark message has two more bytes
1 parent ccac4b4 commit 58f6cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
if (process.argv[2] === 'child') {
33
const len = +process.argv[3];
4-
const msg = `"${'.'.repeat(len)}"`;
4+
const msg = '.'.repeat(len);
55
const send = () => {
66
while (process.send(msg));
77
// Wait: backlog of unsent messages exceeds threshold
@@ -24,7 +24,7 @@ if (process.argv[2] === 'child') {
2424
const dur = +conf.dur;
2525
const len = +conf.len;
2626

27-
const options = { 'stdio': ['ignore', 'ignore', 'ignore', 'ipc'] };
27+
const options = { 'stdio': ['ignore', 1, 2, 'ipc'] };
2828
const child = spawn(process.argv[0],
2929
[process.argv[1], 'child', len], options);
3030

0 commit comments

Comments
 (0)