Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Chrome 67
Windows
Desktop
6 years ago
Test name Executions per second
webcomponents/URL module 7403.5 Ops/sec
uri-parse module 11462.0 Ops/sec
url-parse module 7762.2 Ops/sec
urlparser module 338644.2 Ops/sec
BNF from RFC 3986 3822.5 Ops/sec
RegExp from RFC 3986 plus additional checks 29039.6 Ops/sec
BNF from RFC 2396 3299.7 Ops/sec
native browser URL 6609.7 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