Run details:
Mozilla/5.0 (Linux; Android 12; M2102J20SG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
2 years ago
Test name Executions per second
1) innerHTML += 1137949.0 Ops/sec
2) insertAdjacentHTML 156016.3 Ops/sec
3) appendChild 712228.2 Ops/sec
4) insertAdjacentElement 642695.1 Ops/sec
Script Preparation code:
Tests:
  • 1) innerHTML +=

  • 2) insertAdjacentHTML

  • 3) appendChild

  • 4) insertAdjacentElement