Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36
Chrome 100
Mac OS X 10.13.6
Desktop
2 years ago
Test name Executions per second
1) innerHTML += 1495300.0 Ops/sec
2) insertAdjacentHTML 384821.2 Ops/sec
3) appendChild 998779.3 Ops/sec
4) insertAdjacentElement 959096.6 Ops/sec
Script Preparation code:
Tests:
  • 1) innerHTML +=

  • 2) insertAdjacentHTML

  • 3) appendChild

  • 4) insertAdjacentElement