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

  • Adding with spread

  • Adding with for loop

  • Adding with while 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 for loop
    Adding with while loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Adding with Function.prototype.apply on the push method 6191190.0 Ops/sec
Adding with spread 6214870.5 Ops/sec
Adding with for loop 8214441.5 Ops/sec
Adding with while loop 5608763.0 Ops/sec