Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Chrome 81
Windows
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 4005507.5 Ops/sec
Array.prototype.push 15964882.0 Ops/sec
Array.prototype.reduce 27404768.0 Ops/sec
For-each 25459710.0 Ops/sec
For-of 25402080.0 Ops/sec
For-in 2702132.8 Ops/sec
For 27567026.0 Ops/sec
The Spread-Operator 17891340.0 Ops/sec
Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator


;