Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Chrome 80
Windows
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 2527340.2 Ops/sec
Array.prototype.push 8757580.0 Ops/sec
Array.prototype.reduce 13003626.0 Ops/sec
For-each 11934308.0 Ops/sec
For-of 12015715.0 Ops/sec
For-in 1873834.4 Ops/sec
For 12941907.0 Ops/sec
The Spread-Operator 9662151.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator


;