Tests:
  • Array.prototype.concat

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

     
    var params = [ "hello", true, 7 ]
    var other = [ 1, 2, ...params ]
  • jQuery merge

     
    var params = [ "hello", true, 7 ];
    var other = $.merge([1, 2], params);
  • test

     
    var params = [ "hello", true, 7 ];
    var arr = [ 1, 2 ];
    var other = arr.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
    jQuery merge
    test

    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_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Chrome 60 on Mac OS X 10.12.6
View result in a separate tab
Test name Executions per second
Array.prototype.concat 5955250.0 Ops/sec
spread operator 5062332.5 Ops/sec
jQuery merge 1834189.8 Ops/sec
test 4718246.0 Ops/sec