Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 6876733.5 Ops/sec
Lodash concat 2279732.5 Ops/sec
Array.prototype.push.apply() 2349081.0 Ops/sec
spread operator 6516330.0 Ops/sec
cached for + push 2389451.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;