Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 4887110.0 Ops/sec
Lodash concat 1920064.9 Ops/sec
Array.prototype.push.apply() 2457166.5 Ops/sec
spread operator 0.4 Ops/sec
cached for + push 1909781.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;