Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Chrome 100
Linux
Desktop
2 years ago
Test name Executions per second
Array.prototype.concat 2811009.5 Ops/sec
Lodash concat 1146510.6 Ops/sec
Array.prototype.push.apply() 1722020.5 Ops/sec
spread operator 3578785.5 Ops/sec
cached for + push 548705.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;