Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Adding with Function.prototype.apply on the push method
    Adding with spread
    Adding with loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126 on Windows
View result in a separate tab
Adding with Function.prototype.apply on the push method
9.5M/s
Adding with spread
9.4M/s
Adding with loop
8.9M/s
View exact numbers
Test name Executions per second
Adding with Function.prototype.apply on the push method 9,535,217 Ops/sec
Adding with spread 9,371,289 Ops/sec
Adding with loop 8,887,086 Ops/sec