Tests:
  • fill + map

    AخA
     
    let a = Array(600000).fill().map(() => ({a: 1}));
  • push

     
    let a = [];
    for(let i = 0; i< 600000;i++) a.push({a: 1});
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    fill + map
    push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
fill + map 41.0 Ops/sec
push 46.3 Ops/sec