diff options
Diffstat (limited to 'benchmark/url/usvstring.js')
-rw-r--r-- | benchmark/url/usvstring.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/benchmark/url/usvstring.js b/benchmark/url/usvstring.js index 40a94503738..91abe8d6735 100644 --- a/benchmark/url/usvstring.js +++ b/benchmark/url/usvstring.js @@ -16,10 +16,9 @@ const bench = common.createBenchmark(main, { flags: ['--expose-internals'] }); -function main(conf) { +function main({ input, n }) { const { toUSVString } = require('internal/url'); - const str = inputs[conf.input]; - const n = conf.n | 0; + const str = inputs[input]; bench.start(); for (var i = 0; i < n; i++) |