Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/122.1.328371734 Mobile/15E148 Safari/604.1
Mobile Safari 13
iOS 13.7
Mobile
4 years ago
Test name Executions per second
Array.concat 134745.2 Ops/sec
Array.prototype.concat.apply 132316.7 Ops/sec
Array.prototype.concat.apply short form 132239.2 Ops/sec
Array.prototype.concat.apply short form without new empty array instance in apply 141344.2 Ops/sec
Array.prototype.concat.apply short form without new empty array at all 131372.8 Ops/sec
Script Preparation code:
Tests:
  • Array.concat

  • Array.prototype.concat.apply

  • Array.prototype.concat.apply short form

  • Array.prototype.concat.apply short form without new empty array instance in apply

  • Array.prototype.concat.apply short form without new empty array at all


;