Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Mac OS X 10.15
Desktop
one year ago
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
Tests:
  • Adding with Function.prototype.apply on the push method

  • Adding with spread

  • Adding with for loop

  • Adding with while loop


;