Tests:
  • array construct

    AخA
     
    let a = []; for(let i=0; i <= 1000; i=i+1) { a = [...a, i ]; };
  • array push

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

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    array construct
    array push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
Chrome 76 on Mac OS X 10.13.6
View result in a separate tab
Test name Executions per second
array construct 898.2 Ops/sec
array push 181452.5 Ops/sec