Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Firefox 60
Windows
Desktop
6 years ago
Test name Executions per second
webcomponents/URL module 8769.0 Ops/sec
uri-parse module 12167.2 Ops/sec
url-parse module 5847.5 Ops/sec
urlparser module 5359842.5 Ops/sec
BNF from RFC 3986 734.7 Ops/sec
RegExp from RFC 3986 plus additional checks 20245.3 Ops/sec
BNF from RFC 2396 996.6 Ops/sec
native browser URL 6432.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