Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Array.prototype.concat 5848902.5 Ops/sec
Lodash concat 2307153.8 Ops/sec
Array.prototype.push.apply() 2457178.2 Ops/sec
spread operator 5351310.5 Ops/sec
cached for + push 1111419.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;