Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    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.5M/s
spread operator
9.4M/s
Array.from + push
9.1M/s
View exact numbers
Test name Executions per second
Slice + push 11,459,899 Ops/sec
spread operator 9,383,906 Ops/sec
Array.from + push 9,073,041 Ops/sec