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: 8 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Chrome 139 on Windows
View result in a separate tab
Test name Executions per second
instanceof 103426640.0 Ops/sec
typeof 130307720.0 Ops/sec
typeof no function 150293360.0 Ops/sec
Object.prototype.toString.call 75461896.0 Ops/sec
Object.prototype.toString.call reverse 71820624.0 Ops/sec
constructor 141803200.0 Ops/sec
costructor reverse 140911408.0 Ops/sec
costructor ?. 141261856.0 Ops/sec
constructor.name ?. 53540336.0 Ops/sec
constructor.name ?. reverse 52193756.0 Ops/sec