Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
Chrome 81
Mac OS X 10.15.3
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 6449475.0 Ops/sec
spread operator twice 19386722.0 Ops/sec
Push 20228150.0 Ops/sec
Tests:
  • Array.prototype.concat

    AخA
     
    var arr1 = [ "the", "quick", "brown", "fox", "jumps" ];
    var arr2 = [ "over", "the", "lazy", "dog" ];
    var other = arr1.concat(arr2);
  • spread operator twice

     
    var arr1 = [ "the", "quick", "brown", "fox", "jumps" ];
    var arr2 = [ "over", "the", "lazy", "dog" ];
    var other = [ ...arr1, ...arr2 ];
  • Push

     
    var arr1 = [ "the", "quick", "brown", "fox", "jumps" ];
    var arr2 = [ "over", "the", "lazy", "dog" ];
    var other = arr1.push(...arr2);