Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Mac OS X 10.16
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 4107380.2 Ops/sec
Lodash concat 1589477.2 Ops/sec
Array.prototype.push.apply() 1878096.2 Ops/sec
spread operator 2423522.2 Ops/sec
cached for + push 2262120.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push