Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
array.fill
4K/s
array.push
2K/s

Fastest: array.fill (2.3x faster)

View exact numbers
  • array.fill: 4,086 ops/sec
  • array.push: 1,792 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.push
    array.fill

    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/137.0.0.0 Safari/537.36
Chrome 137 on Windows
View result in a separate tab
array.fill
4K/s
array.push
2K/s
View exact numbers
Test name Executions per second
array.fill 3,893 Ops/sec
array.push 1,514 Ops/sec