Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion benchmark/child_process/child-process-exec-stdout.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,7 +19,7 @@ function childProcessExecStdout({dur, len }){
const cmd = `yes "${'.'.repeat(len)}"`;
const child = exec(cmd,{'stdio': ['ignore', 'pipe', 'ignore'] });

var bytes = 0;
let bytes = 0;
child.stdout.on('data', (msg) =>{
bytes += msg.length;
});
Expand Down
2 changes: 1 addition & 1 deletion benchmark/child_process/child-process-read-ipc.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,7 +26,7 @@ if (process.argv[2] === 'child'){
const child = spawn(process.argv[0],
[process.argv[1], 'child', len], options);

var bytes = 0;
let bytes = 0;
child.on('message', (msg) =>{bytes += msg.length});

setTimeout(() =>{
Expand Down
2 changes: 1 addition & 1 deletion benchmark/child_process/child-process-read.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,7 @@ function main({dur, len }){
const options ={'stdio': ['ignore', 'pipe', 'ignore'] };
const child = child_process.spawn('yes', [msg], options);

var bytes = 0;
let bytes = 0;
child.stdout.on('data', (msg) =>{
bytes += msg.length;
});
Expand Down