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
webcompionents/URL module 6292.1 Ops/sec
uri-parse module 15737.2 Ops/sec
url-parse module 7822.6 Ops/sec
urlparser module 276660.3 Ops/sec
BNF from RFC 3986 3607.8 Ops/sec
RegExp from RFC 3986 plus additional checks 25455.1 Ops/sec
BNF from RFC 2396 2905.7 Ops/sec
native browser URL 2629673.5 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


;