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

Latest run results:
Run details: (Test run date: 2 years 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 4321555.5 Ops/sec
typeof 10109686.0 Ops/sec
typeof no function 5235010.5 Ops/sec
Object.prototype.toString.call 3331079.8 Ops/sec
Object.prototype.toString.call reverse 3330641.5 Ops/sec
constructor 2688801.2 Ops/sec
costructor reverse 2693772.2 Ops/sec
costructor ?. 3548908.8 Ops/sec
constructor.name ?. 7517079.5 Ops/sec
constructor.name ?. reverse 7922247.5 Ops/sec