Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Array.prototype.concat 4604330.5 Ops/sec
spread operator 3969995.8 Ops/sec
Push Spread 2829479.0 Ops/sec
Push Apply 3082193.5 Ops/sec
Push Loop 4410905.5 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.concat

  • spread operator

  • Push Spread

  • Push Apply

  • Push Loop