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 2467330.5 Ops/sec
[string, object] - typeof 7027509.0 Ops/sec
[url, object] - instanceof 2457548.5 Ops/sec
[url, object] - typeof 6949564.5 Ops/sec
[request] - instanceof 55517.7 Ops/sec
[request] - typeof 23954.4 Ops/sec
[string, request] - instanceof 52720.5 Ops/sec
[string, request] - typeof 24761.9 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