Run details:
Mozilla/5.0 (Linux; Android 10; RMX1825) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36
Chrome Mobile 85
Android
Mobile
4 years ago
Test name Executions per second
Array.prototype.concat 942048.8 Ops/sec
Lodash concat 341511.0 Ops/sec
Array.prototype.push.apply() 653349.1 Ops/sec
spread operator 1253833.1 Ops/sec
cached for + push 191102.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;