Browse Source

benchmark: fix first call to URL in useWHATWG

PR-URL: https://github.com/nodejs/node/pull/11170
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
v7.x
Joyee Cheung 8 years ago
committed by Italo A. Casas
parent
commit
6d2797bd80
No known key found for this signature in database GPG Key ID: 23EFEFE93C4CFFFE
  1. 2
      benchmark/url/legacy-vs-whatwg-url-parse.js

2
benchmark/url/legacy-vs-whatwg-url-parse.js

@ -34,7 +34,7 @@ function useLegacy(n, input) {
}
function useWHATWG(n, input) {
var noDead = url.parse(input);
var noDead = new URL(input);
bench.start();
for (var i = 0; i < n; i += 1) {
noDead = new URL(input);

Loading…
Cancel
Save