diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-11 00:30:24 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-13 00:31:25 +0300 |
commit | 0f69f40af004f4c173945b807c43ef55899855c8 (patch) | |
tree | 3f992a248cc8268da7defd7c75a1d50be092cf42 /benchmark/child_process/child-process-read.js | |
parent | 06c29a66d479cf324037537d319dd2368b2692b7 (diff) | |
download | android-node-v8-0f69f40af004f4c173945b807c43ef55899855c8.tar.gz android-node-v8-0f69f40af004f4c173945b807c43ef55899855c8.tar.bz2 android-node-v8-0f69f40af004f4c173945b807c43ef55899855c8.zip |
benchmark: replace more [].join() with ''.repeat()
Refs: https://github.com/nodejs/node/pull/12170
PR-URL: https://github.com/nodejs/node/pull/12317
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/child_process/child-process-read.js')
-rw-r--r-- | benchmark/child_process/child-process-read.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/child_process/child-process-read.js b/benchmark/child_process/child-process-read.js index b0128eb796..6fce35410e 100644 --- a/benchmark/child_process/child-process-read.js +++ b/benchmark/child_process/child-process-read.js @@ -19,7 +19,7 @@ function main(conf) { const dur = +conf.dur; const len = +conf.len; - const msg = '"' + Array(len).join('.') + '"'; + const msg = `"${'.'.repeat(len)}"`; const options = { 'stdio': ['ignore', 'pipe', 'ignore'] }; const child = spawn('yes', [msg], options); |