Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36
Chrome 68
Linux
Desktop
6 years ago
Test name Executions per second
webcomponents/URL module 6675.8 Ops/sec
uri-parse module 16535.0 Ops/sec
url-parse module 7492.4 Ops/sec
urlparser module 283040.1 Ops/sec
BNF from RFC 3986 3392.6 Ops/sec
RegExp from RFC 3986 plus additional checks 28148.0 Ops/sec
BNF from RFC 2396 2705.0 Ops/sec
native browser URL 6777.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