Tests:
  • Array.prototype.concat

  • spread operator

  • Push

  • Object.assign

  • slice(0)

  • slice

  • Array.from

  • for loop

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.prototype.concat
    spread operator
    Push
    Object.assign
    slice(0)
    slice
    Array.from
    for loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Array.prototype.concat 16364929.0 Ops/sec
spread operator 57062344.0 Ops/sec
Push 69420480.0 Ops/sec
Object.assign 2719771.0 Ops/sec
slice(0) 100274720.0 Ops/sec
slice 105288752.0 Ops/sec
Array.from 13161239.0 Ops/sec
for loop 15762814.0 Ops/sec


;