Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:72.0) Gecko/20100101 Firefox/72.0
Firefox 72
Mac OS X 10.12
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 5882189.0 Ops/sec
Lodash concat 1732103.0 Ops/sec
Array.prototype.push.apply() 2498933.8 Ops/sec
spread operator 4294235.0 Ops/sec
cached for + push 1260871.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push