Script Preparation code:
AخA
 
var arr1 = ['a', 'b', 'c'];
var arr2 = ['d', 'e', 'f'];
Tests:
  • Array concat

     
    arr1.concat(arr2)
  • ES6 spread operator

     
    [ ...arr1, ...arr2 ]
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array concat
    ES6 spread operator

    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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36 Edg/79.0.309.71
Chrome 79 on Windows
View result in a separate tab
Test name Executions per second
Array concat 1028234.0 Ops/sec
ES6 spread operator 1813151.1 Ops/sec