Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.6.1 Chrome/112.0.5615.213 Safari/537.36
Chrome 112
Mac OS X 10.15.7
Desktop
9 months ago
Test name Executions per second
Array.prototype.concat 1026448.6 Ops/sec
spread operator 387887.9 Ops/sec
Push Spread 572142.9 Ops/sec
Push Apply 563176.1 Ops/sec
Push Loop 468841.7 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.concat

  • spread operator

  • Push Spread

  • Push Apply

  • Push Loop