Script Preparation code:
Tests:

Historical Performance Data aggregated from 46 community runs

Desktop Results:
Chrome 41 runs
typeof
8.3M/s
isArray
5.7M/s

Fastest: typeof (1.5x faster)

View exact numbers
  • typeof: 8,309,602 ops/sec
  • isArray: 5,674,688 ops/sec
Firefox 5 runs
typeof
273.3M/s
isArray
107.0M/s

Fastest: typeof (2.6x faster)

View exact numbers
  • typeof: 273,321,664 ops/sec
  • isArray: 106,967,624 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
    isArray

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Chrome 140 on Windows
View result in a separate tab
typeof
15.1M/s
isArray
15.1M/s
View exact numbers
Test name Executions per second
typeof 15,093,905 Ops/sec
isArray 15,075,078 Ops/sec