Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36
Chrome 80
Linux
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 5374552.0 Ops/sec
Array.prototype.push 12609480.0 Ops/sec
Array.prototype.reduce 22074200.0 Ops/sec
For-each 27385810.0 Ops/sec
For-of 24454890.0 Ops/sec
For-in 3072192.0 Ops/sec
For 27082040.0 Ops/sec
The Spread-Operator 15816710.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator