Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Array.prototype.concat 29788646.0 Ops/sec
Lodash concat 5402833.0 Ops/sec
Array.prototype.push.apply() 5494405.5 Ops/sec
spread operator 14898426.0 Ops/sec
cached for + push 277828.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;