Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.1
Mobile
2 years ago
Test name Executions per second
Array.prototype.concat 2683321.0 Ops/sec
Array.prototype.push spread 2698467.0 Ops/sec
Array.prototype.concat.apply 1639380.9 Ops/sec
Array.prototype.push.apply 2109614.8 Ops/sec
Spread 4198104.0 Ops/sec
Loop Push 4229047.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


;