Script Preparation code:
Tests:
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 ===

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Firefox 140 on Linux
View result in a separate tab
Object.prototype.toString.call ===
1562.6M/s
Object.prototype.toString.call ==
1449.3M/s
typeof
1285.6M/s
typeof no function
1106.8M/s
instanceof
122.0M/s
View exact numbers
Test name Executions per second
Object.prototype.toString.call === 1,562,626,688 Ops/sec
Object.prototype.toString.call == 1,449,307,776 Ops/sec
typeof 1,285,562,240 Ops/sec
typeof no function 1,106,768,384 Ops/sec
instanceof 121,985,584 Ops/sec