Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    spread operator
    Array.from + push
    Slice + push
    flat

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Windows
View result in a separate tab
Slice + push
11.2M/s
spread operator
9.6M/s
Array.from + push
9.0M/s
flat
2.4M/s
View exact numbers
Test name Executions per second
Slice + push 11,151,552 Ops/sec
spread operator 9,581,254 Ops/sec
Array.from + push 8,972,920 Ops/sec
flat 2,396,250 Ops/sec