Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Chrome 80
Windows 7
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 1026564.7 Ops/sec
Array.prototype.push 4302624.0 Ops/sec
Array.prototype.reduce 7484963.5 Ops/sec
For-each 6201112.0 Ops/sec
For-of 8034346.0 Ops/sec
For-in 1333508.6 Ops/sec
For 13146023.0 Ops/sec
The Spread-Operator 8338418.5 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator


;