Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Chrome 80
Mac OS X 10.15.3
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 7536461.5 Ops/sec
Array.prototype.push 22230104.0 Ops/sec
Array.prototype.reduce 35090260.0 Ops/sec
For-each 33971624.0 Ops/sec
For-of 30065272.0 Ops/sec
For-in 4838762.5 Ops/sec
For 34347196.0 Ops/sec
The Spread-Operator 22141156.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator