diff options
author | Brian White <mscdex@mscdex.net> | 2017-03-05 05:29:35 -0500 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2017-04-04 17:36:37 -0700 |
commit | b76a350a19c36f8c2443ed55b1a9408a09d2e4df (patch) | |
tree | 46ff0a6527709e49caa0ccde6b7887f6abec2ed9 /benchmark | |
parent | 82ef00cc0a36492808badb23d4d79ed303412943 (diff) | |
download | android-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')
-rw-r--r-- | benchmark/url/url-searchparams-read.js | 2 | ||||
-rw-r--r-- | benchmark/url/whatwg-url-properties.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/url/url-searchparams-read.js b/benchmark/url/url-searchparams-read.js index 94ddaf1cfa..762ffcca03 100644 --- a/benchmark/url/url-searchparams-read.js +++ b/benchmark/url/url-searchparams-read.js @@ -5,7 +5,7 @@ const { URLSearchParams } = require('url'); const bench = common.createBenchmark(main, { method: ['get', 'getAll', 'has'], param: ['one', 'two', 'three', 'nonexistent'], - n: [1e6] + n: [2e7] }); const str = 'one=single&two=first&three=first&two=2nd&three=2nd&three=3rd'; 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) { |