Tests:
  • Array.prototype.concat

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

     
    [ ...[ 1, 2 ], ...[ "hello", true, 7 ] ]
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array.prototype.concat
    spread operator

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112 on Linux
View result in a separate tab
Test name Executions per second
Array.prototype.concat 6794179.5 Ops/sec
spread operator 20755648.0 Ops/sec