Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Array.prototype.concat 152572.9 Ops/sec
spread operator 16034.0 Ops/sec
Push Spread 25829.1 Ops/sec
Push Apply 25851.4 Ops/sec
Push Loop 20710.4 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.concat

  • spread operator

  • Push Spread

  • Push Apply

  • Push Loop