Run details:
Mozilla/5.0 (Linux; Android 10; SM-A750FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.120 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
Array.concat 131231.2 Ops/sec
Array.prototype.concat.apply 120396.1 Ops/sec
Array.prototype.concat.apply short form 143958.1 Ops/sec
Array.prototype.concat.apply short form without new empty array instance in apply 149878.0 Ops/sec
Array.prototype.concat.apply short form without new empty array at all 141679.0 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


;