Run details:
Mozilla/5.0 (Android 7.0; Mobile; rv:102.0) Gecko/102.0 Firefox/102.0
Firefox Mobile 102
Android 7.0
Mobile
2 years ago
Test name Executions per second
1) innerHTML += 1956734.5 Ops/sec
2) insertAdjacentHTML 244693.9 Ops/sec
3) appendChild 944718.6 Ops/sec
4) insertAdjacentElement 888375.1 Ops/sec
Script Preparation code:
Tests:
  • 1) innerHTML +=

  • 2) insertAdjacentHTML

  • 3) appendChild

  • 4) insertAdjacentElement