Tests:
  • Push

    AخA
     
    var array = [ 1,2,3 ];
    var result = array.push(4);
  • Spread

     
    var array = [ 1,2,3 ];
    var result = [...array, 4]
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: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15
Safari 13 on Mac OS X 10.15.1
View result in a separate tab
Test name Executions per second
Push 12969778.0 Ops/sec
Spread 64406908.0 Ops/sec