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 6006271.5 Ops/sec
Array.prototype.push 15125549.0 Ops/sec
Array.prototype.reduce 26952858.0 Ops/sec
For-each 26682412.0 Ops/sec
For-of 23628346.0 Ops/sec
For-in 2951756.0 Ops/sec
For 25458988.0 Ops/sec
The Spread-Operator 15266695.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator