Script Preparation code:
Tests:

Historical Performance Data aggregated from 34 community runs

Desktop Results:
Chrome 21 runs
isArray
7.1M/s
Instanceof
6.4M/s
View exact numbers
  • isArray: 7,059,422 ops/sec
  • Instanceof: 6,424,604 ops/sec
Firefox 13 runs
isArray
65.1M/s
Instanceof
63.5M/s
View exact numbers
  • isArray: 65,109,344 ops/sec
  • Instanceof: 63,481,236 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
    isArray

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0
Firefox 148 on Windows
View result in a separate tab
Instanceof
38.0M/s
isArray
37.9M/s
View exact numbers
Test name Executions per second
Instanceof 38,039,608 Ops/sec
isArray 37,880,952 Ops/sec