Run details:
Mozilla/5.0 (Linux; Android 12; RMX3081) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
Chrome Mobile 104
Android
Mobile
2 years ago
Test name Executions per second
Array.prototype.concat 348667.8 Ops/sec
Lodash concat 163485.4 Ops/sec
Array.prototype.push.apply() 260091.9 Ops/sec
spread operator 524670.6 Ops/sec
cached for + push 76468.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;