Tests:
  • Adding with Function.prototype.apply on the push method

  • Adding with spread

  • Adding with loop

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: 6 months 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
Test name Executions per second
Adding with Function.prototype.apply on the push method 9535217.0 Ops/sec
Adding with spread 9371289.0 Ops/sec
Adding with loop 8887086.0 Ops/sec