Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Chrome 79
Windows 8.1
Desktop
4 years ago
Test name Executions per second
Array.concat 182496.1 Ops/sec
Array.prototype.concat.apply 162306.6 Ops/sec
Array.prototype.concat.apply short form 168777.6 Ops/sec
Array.prototype.concat.apply short form without new empty array instance in apply 149095.7 Ops/sec
Array.prototype.concat.apply short form without new empty array at all 142787.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