Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Chrome 85
Mac OS X 10.15.7
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 2320511.2 Ops/sec
Array.prototype.push spread 4221589.0 Ops/sec
Array.prototype.concat.apply 1327640.6 Ops/sec
Array.prototype.push.apply 2384525.8 Ops/sec
Spread 4940445.0 Ops/sec
Loop Push 4984619.0 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Array.prototype.push spread

  • Array.prototype.concat.apply

  • Array.prototype.push.apply

  • Spread

  • Loop Push


;