Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98
Linux
Desktop
2 years ago
Test name Executions per second
Array.prototype.concat 8181950.5 Ops/sec
Lodash concat 2832004.2 Ops/sec
Array.prototype.push.apply() 2441535.8 Ops/sec
spread operator 6692514.5 Ops/sec
cached for + push 1742488.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push