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 2401522.0 Ops/sec
Lodash concat 1015117.3 Ops/sec
Array.prototype.push.apply() 1603621.6 Ops/sec
spread operator 2588806.5 Ops/sec
cached for + push 449176.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push