Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
Chrome 84
Linux
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 696551.9 Ops/sec
Lodash concat 222310.2 Ops/sec
Array.prototype.push.apply() 518643.6 Ops/sec
spread operator 913836.1 Ops/sec
cached for + push 157238.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push