Script Preparation code:
Tests:

Historical Performance Data aggregated from 119 community runs

Desktop Results:
Chrome 112 runs
array length
378K/s
array length > 0
373K/s
View exact numbers
  • array length : 377,628 ops/sec
  • array length > 0 : 373,123 ops/sec
Firefox 7 runs
array length > 0
184K/s
array length
180K/s
View exact numbers
  • array length > 0 : 184,318 ops/sec
  • array length : 180,497 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 length
    array length > 0

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138 on Windows
View result in a separate tab
array length
226K/s
array length > 0
221K/s
View exact numbers
Test name Executions per second
array length 226,387 Ops/sec
array length > 0 220,578 Ops/sec