Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Windows
Desktop
2 years ago
Test name Executions per second
Array.prototype.concat 4028067.8 Ops/sec
Lodash concat 1281545.5 Ops/sec
Array.prototype.push.apply() 1900008.5 Ops/sec
spread operator 3695991.5 Ops/sec
cached for + push 1972971.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push