Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73
Linux
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 4570078.0 Ops/sec
Array.prototype.push 3899394.0 Ops/sec
Array.prototype.reduce 10877276.0 Ops/sec
For-each 6099514.5 Ops/sec
For-of 9365902.0 Ops/sec
For-in 509481.5 Ops/sec
For 11370298.0 Ops/sec
The Spread-Operator 5367172.5 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator