Tests:
  • Using concat

  • Using prototype.push.apply

  • Using arr1.push.apply

  • Using push spread operator

  • Using spread operator

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using concat
    Using prototype.push.apply
    Using arr1.push.apply
    Using push spread operator
    Using spread operator

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138 on Windows
View result in a separate tab
Test name Executions per second
Using concat 13379905.0 Ops/sec
Using prototype.push.apply 34477092.0 Ops/sec
Using arr1.push.apply 38837304.0 Ops/sec
Using push spread operator 38052888.0 Ops/sec
Using spread operator 28727492.0 Ops/sec