summaryrefslogtreecommitdiff
path: root/benchmark/url/url-resolve.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/url/url-resolve.js')
-rw-r--r--benchmark/url/url-resolve.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/benchmark/url/url-resolve.js b/benchmark/url/url-resolve.js
index 421a70ef6d..48978574ea 100644
--- a/benchmark/url/url-resolve.js
+++ b/benchmark/url/url-resolve.js
@@ -18,13 +18,12 @@ const bench = common.createBenchmark(main, {
n: [1e5]
});
-function main(conf) {
- const n = conf.n | 0;
- const href = hrefs[conf.href];
- const path = paths[conf.path];
+function main({ n, href, path }) {
+ const h = hrefs[href];
+ const p = paths[path];
bench.start();
for (var i = 0; i < n; i += 1)
- url.resolve(href, path);
+ url.resolve(h, p);
bench.end(n);
}