Run details:
Mozilla/5.0 (Linux; Android 11; HD1907) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
3 years ago
Test name Executions per second
Array.prototype.concat 2095507.6 Ops/sec
spread operator 2888256.8 Ops/sec
copy on push 1387847.4 Ops/sec
directly push 1687021.2 Ops/sec
flat 0.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • spread operator

  • copy on push

  • directly push

  • flat