Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36
Chrome 99
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
webcomponents/URL module 15528.2 Ops/sec
uri-parse module 25423.6 Ops/sec
url-parse module 12276.9 Ops/sec
urlparser module 606363.9 Ops/sec
BNF from RFC 3986 5284.0 Ops/sec
RegExp from RFC 3986 plus additional checks 54491.9 Ops/sec
BNF from RFC 2396 3966.2 Ops/sec
native browser URL 13536.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


;