Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36
Chrome 89
Linux
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 1809886.5 Ops/sec
Lodash concat 736259.6 Ops/sec
Array.prototype.push.apply() 1330410.9 Ops/sec
spread operator 2896324.0 Ops/sec
cached for + push 351867.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push