Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36
Chrome 93
Windows
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 7403200.0 Ops/sec
Array.prototype.push 21371456.0 Ops/sec
Array.prototype.reduce 40381744.0 Ops/sec
For-each 37812744.0 Ops/sec
For-of 36538176.0 Ops/sec
For-in 4524083.0 Ops/sec
For 37556308.0 Ops/sec
The Spread-Operator 24035380.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator