diff options
Diffstat (limited to 'benchmark/dns')
-rw-r--r-- | benchmark/dns/lookup.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/benchmark/dns/lookup.js b/benchmark/dns/lookup.js index bb562d528c..3cc228c566 100644 --- a/benchmark/dns/lookup.js +++ b/benchmark/dns/lookup.js @@ -9,13 +9,10 @@ const bench = common.createBenchmark(main, { n: [5e6] }); -function main(conf) { - const name = conf.name; - const n = +conf.n; - const all = conf.all === 'true' ? true : false; +function main({ name, n, all }) { var i = 0; - if (all) { + if (all === 'true') { const opts = { all: true }; bench.start(); (function cb() { |