Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
Chrome 92
Linux
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 1871041.6 Ops/sec
Lodash concat 822174.4 Ops/sec
Array.prototype.push.apply() 1458083.8 Ops/sec
spread operator 2734174.8 Ops/sec
cached for + push 413135.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;