Tests:
  • for

    AخA
     
    let retArray = [];
            for (var i = 0; i < 3; i++) {
                retArray.push(0);
            }
  • fill

     
    new Array(3).fill(0)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    for
    fill

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112 on Android
View result in a separate tab
Test name Executions per second
for 63022352.0 Ops/sec
fill 4703672.0 Ops/sec