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-params.js')
-rw-r--r--benchmark/child_process/child-process-params.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/benchmark/child_process/child-process-params.js b/benchmark/child_process/child-process-params.js
index 644b2136a0f..df930395b2a 100644
--- a/benchmark/child_process/child-process-params.js
+++ b/benchmark/child_process/child-process-params.js
@@ -20,11 +20,7 @@ const configs = {
const bench = common.createBenchmark(main, configs);
-function main(conf) {
- const n = +conf.n;
- const methodName = conf.methodName;
- const params = +conf.params;
-
+function main({ n, methodName, params }) {
const method = cp[methodName];
switch (methodName) {