Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36
Chrome 88
Mac OS X 10.12.6
Desktop
3 years ago
Test name Executions per second
Array.concat 325681.1 Ops/sec
Array.prototype.concat.apply 283611.6 Ops/sec
Array.prototype.concat.apply short form 340843.5 Ops/sec
Array.prototype.concat.apply short form without new empty array instance in apply 368586.4 Ops/sec
Array.prototype.concat.apply short form without new empty array at all 331827.7 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


;