Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 OPR/93.0.0.0
Opera 93
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
1) innerHTML += 1244806.5 Ops/sec
2) insertAdjacentHTML 324815.2 Ops/sec
3) appendChild 649601.1 Ops/sec
4) insertAdjacentElement 597524.0 Ops/sec
Script Preparation code:
Tests:
  • 1) innerHTML +=

  • 2) insertAdjacentHTML

  • 3) appendChild

  • 4) insertAdjacentElement