Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0
Firefox 92
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 5879454.0 Ops/sec
Lodash concat 2301980.0 Ops/sec
Array.prototype.push.apply() 2942170.2 Ops/sec
spread operator 4973532.5 Ops/sec
cached for + push 1486798.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;