Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
Chrome 76
Windows
Desktop
5 years ago
Test name Executions per second
Array.prototype.concat 1206463.6 Ops/sec
Array.prototype.push spread 3741837.2 Ops/sec
Array.prototype.concat.apply 928315.6 Ops/sec
Array.prototype.push.apply 2041371.4 Ops/sec
Spread 4343183.5 Ops/sec
Loop Push 4270168.5 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Array.prototype.push spread

  • Array.prototype.concat.apply

  • Array.prototype.push.apply

  • Spread

  • Loop Push


;