Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Chrome 96
Linux
Desktop
2 years ago
Test name Executions per second
Array.concat 1221097.8 Ops/sec
Array.prototype.concat.apply 1125806.0 Ops/sec
Array.prototype.concat.apply short form 1289048.8 Ops/sec
Array.prototype.concat.apply short form without new empty array instance in apply 1206440.1 Ops/sec
Array.prototype.concat.apply short form without new empty array at all 1135229.2 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


;