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 13377290.0 Ops/sec
Array.prototype.reduce 22648210.0 Ops/sec
For-each 21441320.0 Ops/sec
For-of 20641010.0 Ops/sec
For-in 2237645.0 Ops/sec
For 23690790.0 Ops/sec
The Spread-Operator 14690120.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator