Tests:
  • Array.prototype.concat

    AخA
     
    var params = [ 3];
    var other = [ 1, 2 ].concat(params);
  • spread operator

     
    var params = [ 1, 2 ]
    var other = [ ...params, 3 ]
  • Push

     
    var params = 2;
    var other = [ 1, 2 ].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: 5 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Firefox 74 on Windows
View result in a separate tab
Test name Executions per second
Array.prototype.concat 14137673.0 Ops/sec
spread operator 10433382.0 Ops/sec
Push 12760394.0 Ops/sec