Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/child_process/child-process-read-ipc.js')
-rw-r--r--benchmark/child_process/child-process-read-ipc.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/benchmark/child_process/child-process-read-ipc.js b/benchmark/child_process/child-process-read-ipc.js
index e6fb9b19c20..3971eb8b396 100644
--- a/benchmark/child_process/child-process-read-ipc.js
+++ b/benchmark/child_process/child-process-read-ipc.js
@@ -18,11 +18,9 @@ if (process.argv[2] === 'child') {
dur: [5]
});
const spawn = require('child_process').spawn;
- function main(conf) {
- bench.start();
- const dur = +conf.dur;
- const len = +conf.len;
+ function main({ dur, len }) {
+ bench.start();
const options = { 'stdio': ['ignore', 1, 2, 'ipc'] };
const child = spawn(process.argv[0],