Permalink
Browse files

benchmark: fix first call to URL in useWHATWG

PR-URL: #11170
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
  • Loading branch information...
joyeecheung authored and italoacasas committed Feb 4, 2017
1 parent 20127e0 commit 6d2797bd8043d8820b49bedf6827d75223e5b496
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 6d2797b

Please sign in to comment.