Script Preparation code:
AخA
 
var obj = {a:1}
Tests:
  • instanceof

     
    obj instanceof Object 
  • typeof

     
    typeof obj === 'object' && obj !== null
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    instanceof
    typeof

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.78 Safari/537.36
Chrome 102 on Linux
View result in a separate tab
Test name Executions per second
instanceof 4012716.0 Ops/sec
typeof 6658261.0 Ops/sec