summaryrefslogtreecommitdiff
path: root/benchmark/child_process
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/child_process')
-rw-r--r--benchmark/child_process/child-process-exec-stdout.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/child_process/child-process-exec-stdout.js b/benchmark/child_process/child-process-exec-stdout.js
index 6194f66b55..7b93aacff8 100644
--- a/benchmark/child_process/child-process-exec-stdout.js
+++ b/benchmark/child_process/child-process-exec-stdout.js
@@ -20,8 +20,7 @@ function main(conf) {
const msg = `"${'.'.repeat(len)}"`;
msg.match(/./);
const options = {'stdio': ['ignore', 'pipe', 'ignore']};
- // NOTE: Command below assumes bash shell.
- const child = exec(`while\n echo ${msg}\ndo :; done\n`, options);
+ const child = exec(`yes ${msg}`, options);
var bytes = 0;
child.stdout.on('data', function(msg) {