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 339763.6 Ops/sec
Lodash concat 160580.4 Ops/sec
Array.prototype.push.apply() 243083.2 Ops/sec
spread operator 518231.4 Ops/sec
cached for + push 73941.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;