Script Preparation code:
Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
typeof
182.3M/s
instanceof
110.3M/s

Fastest: typeof (1.7x faster)

View exact numbers
  • typeof: 182,264,064 ops/sec
  • instanceof: 110,252,944 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    instanceof
    typeof

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 24 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36
Chrome 151 on Windows
View result in a separate tab
typeof
496.4M/s
instanceof
93.2M/s
View exact numbers
Test name Executions per second
typeof 496,391,648 Ops/sec
instanceof 93,172,136 Ops/sec