Tests:
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: one year 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
Using arr1.push.apply
38.8M/s
Using push spread operator
38.1M/s
Using prototype.push.apply
34.5M/s
Using spread operator
28.7M/s
Using concat
13.4M/s
View exact numbers
Test name Executions per second
Using arr1.push.apply 38,837,304 Ops/sec
Using push spread operator 38,052,888 Ops/sec
Using prototype.push.apply 34,477,092 Ops/sec
Using spread operator 28,727,492 Ops/sec
Using concat 13,379,905 Ops/sec