Tests:
  • Array.prototype.concat

    AخA
     
    const params = 7;
    const other = [ 1, 2 ].concat([params]);
  • spread operator

     
    const params = [ 1, 2] 
    const other = [...params, 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 month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Array.prototype.concat 8793097.0 Ops/sec
spread operator 31149410.0 Ops/sec