Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Array.prototype.concat 7823225.5 Ops/sec
Lodash concat 2642982.8 Ops/sec
Array.prototype.push.apply() 2756250.0 Ops/sec
spread operator 7337247.5 Ops/sec
cached for + push 1562780.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;