Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.181 Chrome/66.0.3359.181 Safari/537.36
Chromium 66
Ubuntu
Desktop
6 years ago
Test name Executions per second
webcomponents/URL module 6792.2 Ops/sec
uri-parse module 16625.4 Ops/sec
url-parse module 7289.0 Ops/sec
urlparser module 275673.8 Ops/sec
BNF from RFC 3986 3416.4 Ops/sec
RegExp from RFC 3986 plus additional checks 25009.3 Ops/sec
BNF from RFC 2396 2817.4 Ops/sec
native browser URL 5974.8 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