Tests:

Historical Performance Data aggregated from 40 community runs

Desktop Results:
Chrome 35 runs
typeof
157.2M/s
isNaN
13.7M/s

Fastest: typeof (11.5x faster)

View exact numbers
  • typeof: 157,217,616 ops/sec
  • isNaN: 13,721,731 ops/sec
Firefox 5 runs
isNaN
853.4M/s
typeof
759.3M/s

Fastest: isNaN (1.1x faster)

View exact numbers
  • isNaN: 853,423,040 ops/sec
  • typeof: 759,286,656 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
    typeof
    isNaN

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
Chrome 143 on Windows
View result in a separate tab
typeof
170.9M/s
isNaN
154.3M/s
View exact numbers
Test name Executions per second
typeof 170,907,584 Ops/sec
isNaN 154,327,424 Ops/sec