Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Firefox 62
Windows
Desktop
6 years ago
Test name Executions per second
webcomponents/URL module 11895.0 Ops/sec
uri-parse module 23068.3 Ops/sec
url-parse module 10682.0 Ops/sec
urlparser module 5942585.5 Ops/sec
BNF from RFC 3986 1521.8 Ops/sec
RegExp from RFC 3986 plus additional checks 38054.7 Ops/sec
BNF from RFC 2396 2028.0 Ops/sec
native browser URL 12287.6 Ops/sec
Script Preparation code:
Tests:
  • webcomponents/URL module

  • uri-parse module

  • url-parse module

  • urlparser module

  • BNF from RFC 3986

  • RegExp from RFC 3986 plus additional checks

  • BNF from RFC 2396

  • native browser URL