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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
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 on Mac OS X 10.15.7
View result in a separate tab
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