Script Preparation code:
Tests:
  • instanceof

  • typeof

  • typeof no function

  • Object.prototype.toString.call

  • Object.prototype.toString.call reverse

  • constructor

  • costructor reverse

  • costructor ?.

  • constructor.name ?.

  • constructor.name ?. reverse

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    instanceof
    typeof
    typeof no function
    Object.prototype.toString.call
    Object.prototype.toString.call reverse
    constructor
    costructor reverse
    costructor ?.
    constructor.name ?.
    constructor.name ?. reverse

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105 on Windows
View result in a separate tab
Test name Executions per second
instanceof 4321556.0 Ops/sec
typeof 10109690.0 Ops/sec
typeof no function 5235011.0 Ops/sec
Object.prototype.toString.call 3331080.0 Ops/sec
Object.prototype.toString.call reverse 3330642.0 Ops/sec
constructor 2688801.0 Ops/sec
costructor reverse 2693772.0 Ops/sec
costructor ?. 3548909.0 Ops/sec
constructor.name ?. 7517080.0 Ops/sec
constructor.name ?. reverse 7922248.0 Ops/sec