Tests:

Historical Performance Data aggregated from 21 community runs

Desktop Results:
Chrome 15 runs
For Loop fill
58/s
Array Fill
50/s
Push
14/s

Fastest: For Loop fill (4.3x faster)

View exact numbers
  • For Loop fill: 58 ops/sec
  • Array Fill: 50 ops/sec
  • Push: 14 ops/sec
Firefox 6 runs
Push
11/s
Array Fill
11/s
For Loop fill
11/s
View exact numbers
  • Push: 11 ops/sec
  • Array Fill: 11 ops/sec
  • For Loop fill: 11 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
    For Loop fill
    Array Fill
    Push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Mac OS X 10.15.7
View result in a separate tab
For Loop fill
197/s
Array Fill
174/s
Push
43/s
View exact numbers
Test name Executions per second
For Loop fill 197 Ops/sec
Array Fill 174 Ops/sec
Push 43 Ops/sec