Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Chrome 89
Windows
Desktop
3 years ago
Test name Executions per second
webcomponents/URL module 3446.8 Ops/sec
uri-parse module 25323.9 Ops/sec
url-parse module 12829.1 Ops/sec
urlparser module 516965.4 Ops/sec
BNF from RFC 3986 16719.2 Ops/sec
RegExp from RFC 3986 plus additional checks 46077.8 Ops/sec
BNF from RFC 2396 14158.2 Ops/sec
native browser URL 3843.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


;