summaryrefslogtreecommitdiff
path: root/benchmark/url/whatwg-url-properties.js
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2017-03-05 05:29:35 -0500
committerTimothy Gu <timothygu99@gmail.com>2017-04-04 17:36:37 -0700
commitb76a350a19c36f8c2443ed55b1a9408a09d2e4df (patch)
tree46ff0a6527709e49caa0ccde6b7887f6abec2ed9 /benchmark/url/whatwg-url-properties.js
parent82ef00cc0a36492808badb23d4d79ed303412943 (diff)
downloadandroid-node-v8-b76a350a19c36f8c2443ed55b1a9408a09d2e4df.tar.gz
android-node-v8-b76a350a19c36f8c2443ed55b1a9408a09d2e4df.tar.bz2
android-node-v8-b76a350a19c36f8c2443ed55b1a9408a09d2e4df.zip
url: avoid instanceof for WHATWG URL
PR-URL: https://github.com/nodejs/node/pull/11690 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Diffstat (limited to 'benchmark/url/whatwg-url-properties.js')
-rw-r--r--benchmark/url/whatwg-url-properties.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/url/whatwg-url-properties.js b/benchmark/url/whatwg-url-properties.js
index 9bdc9778a8..3a865d2335 100644
--- a/benchmark/url/whatwg-url-properties.js
+++ b/benchmark/url/whatwg-url-properties.js
@@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, {
prop: ['href', 'origin', 'protocol',
'username', 'password', 'host', 'hostname', 'port',
'pathname', 'search', 'searchParams', 'hash'],
- n: [1e4]
+ n: [3e5]
});
function setAndGet(n, url, prop, alternative) {