Tests:

Historical Performance Data aggregated from 145 community runs

Desktop Results:
Chrome 104 runs
For Loop fill
41/s
Array Fill
39/s
View exact numbers
  • For Loop fill: 41 ops/sec
  • Array Fill: 39 ops/sec
Firefox 35 runs
Array Fill
8/s
For Loop fill
8/s
View exact numbers
  • Array Fill: 8 ops/sec
  • For Loop fill: 8 ops/sec
Mobile Results:
Chrome 6 runs
Array Fill
19/s
For Loop fill
18/s
View exact numbers
  • Array Fill: 19 ops/sec
  • For Loop fill: 18 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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 18 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
Chrome 152 on Windows
View result in a separate tab
For Loop fill
29/s
Array Fill
26/s
View exact numbers
Test name Executions per second
For Loop fill 29 Ops/sec
Array Fill 26 Ops/sec