Tests:
  • Push

    AخA
     
    var params = [ "hello", true, 7 ]
    var other = params.push(1);
  • Spread

     
    var params = [ "hello", true, 7 ]
    var other = [...params, 1];
  • Push Front

     
    var params = [ "hello", true, 7 ]
    var other = params.unshift(1);
  • Spread Front

     
    var params = [ "hello", true, 7 ]
    var other = [1, ...params];
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Push
    Spread
    Push Front
    Spread Front

    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_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36
Chrome 81 on Mac OS X 10.14.3
View result in a separate tab
Test name Executions per second
Push 18147846.0 Ops/sec
Spread 11412336.0 Ops/sec
Push Front 6267919.5 Ops/sec
Spread Front 20466118.0 Ops/sec