Tests:
  • Array.prototype.concat

    AخA
     
    var params = [ "hello", true, 7 ]
    var other = params.concat(1);
  • spread operator

     
    var params = [ "hello", true, 7 ]
    var other = [ ...params, 1]
  • push

     
    var other = [ "hello", true, 7 ]
    other.push(1)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array.prototype.concat
    spread operator
    push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Chrome 65 on Mac OS X 10.13.4
View result in a separate tab
Test name Executions per second
Array.prototype.concat 4125997.0 Ops/sec
spread operator 5019329.5 Ops/sec
push 30247852.0 Ops/sec