Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
array = []
8.3M/s
array length = 0
6.8M/s

Fastest: array = [] (1.2x faster)

View exact numbers
  • array = []: 8,299,224 ops/sec
  • array length = 0 : 6,804,414 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 = []
    array length = 0

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142 on Mac OS X 10.15.7
View result in a separate tab
array = []
9.9M/s
array length = 0
7.5M/s
View exact numbers
Test name Executions per second
array = [] 9,938,955 Ops/sec
array length = 0 7,463,552 Ops/sec