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 7484065.5 Ops/sec
Array.prototype.push 22300970.0 Ops/sec
Array.prototype.reduce 35000200.0 Ops/sec
For-each 34202296.0 Ops/sec
For-of 30046170.0 Ops/sec
For-in 4821556.0 Ops/sec
For 34433912.0 Ops/sec
The Spread-Operator 21570546.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator