Tests:
  • Array.prototype.concat

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

     
    var params = [ "hello", "true", "aaaaa" ];
    var other = [ "hello", "hello", ...params ]
  • Push

     
    var params = [ "hello", "true", "aaaaa" ];
    var other = [ "hello", "hello" ].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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Chrome 83 on Linux
View result in a separate tab
Test name Executions per second
Array.prototype.concat 7333169.5 Ops/sec
spread operator 32131322.0 Ops/sec
Push 25155052.0 Ops/sec