Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Chrome 85
Windows
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 4106131.0 Ops/sec
Array.prototype.push 13698856.0 Ops/sec
Array.prototype.reduce 21972008.0 Ops/sec
For-each 17913532.0 Ops/sec
For-of 16716896.0 Ops/sec
For-in 2035013.1 Ops/sec
For 21476174.0 Ops/sec
The Spread-Operator 13543822.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator