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

  • 2) insertAdjacentHTML

  • 3) appendChild

  • 4) insertAdjacentElement