Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Array.prototype.concat 3191705.5 Ops/sec
spread operator 4681709.5 Ops/sec
Push Spread 4855430.0 Ops/sec
Push Loop for of 13863733.0 Ops/sec
Push Loop for 6137513.0 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.concat

  • spread operator

  • Push Spread

  • Push Loop for of

  • Push Loop for