Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Chrome 80
Windows
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 3713291.0 Ops/sec
Array.prototype.push 13377291.0 Ops/sec
Array.prototype.reduce 22648208.0 Ops/sec
For-each 21441318.0 Ops/sec
For-of 20641014.0 Ops/sec
For-in 2237644.8 Ops/sec
For 23690792.0 Ops/sec
The Spread-Operator 14690118.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator