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 2764417.8 Ops/sec
Lodash concat 1101009.0 Ops/sec
Array.prototype.push.apply() 1403262.9 Ops/sec
spread operator 3453355.2 Ops/sec
cached for + push 503557.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push