Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Linux
Desktop
one year ago
Test name Executions per second
[string, object] - instanceof 2211667.0 Ops/sec
[string, object] - typeof 6610892.0 Ops/sec
[url, object] - instanceof 2279837.5 Ops/sec
[url, object] - typeof 6673912.0 Ops/sec
[request] - instanceof 47006.9 Ops/sec
[request] - typeof 22420.0 Ops/sec
[string, request] - instanceof 50283.2 Ops/sec
[string, request] - typeof 24058.5 Ops/sec
Script Preparation code:
Tests:
  • [string, object] - instanceof

  • [string, object] - typeof

  • [url, object] - instanceof

  • [url, object] - typeof

  • [request] - instanceof

  • [request] - typeof

  • [string, request] - instanceof

  • [string, request] - typeof