Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 OPR/94.0.0.0 (Edition Yx 05)
Opera 94
Windows 8.1
Desktop
one year ago
Test name Executions per second
Array.prototype.concat 2383239.0 Ops/sec
Lodash concat 1034371.0 Ops/sec
Array.prototype.push.apply() 1572830.0 Ops/sec
spread operator 2945123.0 Ops/sec
cached for + push 456519.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push