Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Ubuntu
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 5357815.5 Ops/sec
Lodash concat 1685236.1 Ops/sec
Array.prototype.push.apply() 1587569.0 Ops/sec
spread operator 3887844.0 Ops/sec
cached for + push 2500155.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;