Script Preparation code:
Tests:

Historical Performance Data aggregated from 33 community runs

Desktop Results:
Chrome 27 runs
Check object.length
31.9M/s
Array.isArray
31.8M/s
View exact numbers
  • Check object.length: 31,940,142 ops/sec
  • Array.isArray: 31,811,580 ops/sec
Firefox 6 runs
Check object.length
1570.3M/s
Array.isArray
343.0M/s

Fastest: Check object.length (4.6x faster)

View exact numbers
  • Check object.length: 1,570,345,600 ops/sec
  • Array.isArray: 343,048,896 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
    Array.isArray
    Check object.length

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0
Firefox 146 on Windows
View result in a separate tab
Check object.length
2161.4M/s
Array.isArray
352.9M/s
View exact numbers
Test name Executions per second
Check object.length 2,161,383,168 Ops/sec
Array.isArray 352,865,728 Ops/sec