Script Preparation code:
AخA
 
var array = [];
for (let i = 0; i < 1000; i++)
    array.push(i);
Tests:
  • Push

     
    array.push(1001)
  • Spread

     
    array = [...array, 1001]
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Push
    Spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87 on Linux
View result in a separate tab
Test name Executions per second
Push 10288416.0 Ops/sec
Spread 2.2 Ops/sec