Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
Array.prototype.push 72006592.0 Ops/sec
spread operator 13299719.0 Ops/sec
Array.prototype.push multiple 61421144.0 Ops/sec
spread operator multiple 18541798.0 Ops/sec
Array.prototype.push.apply 7950973.0 Ops/sec
Tests:
  • Array.prototype.push

  • spread operator

  • Array.prototype.push multiple

  • spread operator multiple

  • Array.prototype.push.apply


;