Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Array.prototype.concat 7811948.5 Ops/sec
Lodash concat 3018245.5 Ops/sec
Array.prototype.push.apply() 2502546.5 Ops/sec
spread operator 6569237.5 Ops/sec
cached for + push 2205502.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push