Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
New empty array
47K/s
Set length to zero
47K/s
View exact numbers
  • New empty array: 47,083 ops/sec
  • Set length to zero: 46,924 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
    Set length to zero
    New empty array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Linux
View result in a separate tab
New empty array
13K/s
Set length to zero
12K/s
View exact numbers
Test name Executions per second
New empty array 13,432 Ops/sec
Set length to zero 12,099 Ops/sec