Run details:
Mozilla/5.0 (Windows NT 10.0; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Windows
Desktop
3 months ago
Test name Executions per second
1) innerHTML += 19497542.0 Ops/sec
2) insertAdjacentHTML 1327612.2 Ops/sec
3) appendChild 6887644.5 Ops/sec
4) insertAdjacentElement 5403023.0 Ops/sec
Script Preparation code:
Tests:
  • 1) innerHTML +=

  • 2) insertAdjacentHTML

  • 3) appendChild

  • 4) insertAdjacentElement