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 6656.3 Ops/sec
uri-parse module 15979.4 Ops/sec
url-parse module 7567.3 Ops/sec
urlparser module 272443.3 Ops/sec
BNF from RFC 3986 3628.8 Ops/sec
RegExp from RFC 3986 plus additional checks 25132.4 Ops/sec
BNF from RFC 2396 2838.1 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