diff --git a/benchmark/os/cpus.js b/benchmark/os/cpus.js index 2a8535113c2..da158a1b061 100644 --- a/benchmark/os/cpus.js +++ b/benchmark/os/cpus.js @@ -7,9 +7,7 @@ const bench = common.createBenchmark(main, { n: [3e4] }); -function main(conf) { - const n = +conf.n; - +function main({ n }) { bench.start(); for (var i = 0; i < n; ++i) cpus(); diff --git a/benchmark/os/loadavg.js b/benchmark/os/loadavg.js index 6e3c57ed44b..2cd38316b24 100644 --- a/benchmark/os/loadavg.js +++ b/benchmark/os/loadavg.js @@ -7,9 +7,7 @@ const bench = common.createBenchmark(main, { n: [5e6] }); -function main(conf) { - const n = +conf.n; - +function main({ n }) { bench.start(); for (var i = 0; i < n; ++i) loadavg();