Tests:
  • Array.prototype.concat

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

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

     
    var other = [ 1, 2 ];
    var params = [ "hello", true, 7 ];
    other.push(...params);
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: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75 on Windows
View result in a separate tab
Test name Executions per second
Array.prototype.concat 11001552.0 Ops/sec
spread operator 9385643.0 Ops/sec
Push 3132691.2 Ops/sec