Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 YaBrowser/23.5.7.75.10 YaApp_iOS/2305.7 YaApp_iOS_Browser/2305.7 Safari/604.1 SA/3
Yandex Browser 23
iOS 16.5
Mobile
one year ago
Test name Executions per second
1) innerHTML += 6160542.5 Ops/sec
2) insertAdjacentHTML 3163591.8 Ops/sec
3) appendChild 4404372.0 Ops/sec
4) insertAdjacentElement 4144746.2 Ops/sec
Script Preparation code:
Tests:
  • 1) innerHTML +=

  • 2) insertAdjacentHTML

  • 3) appendChild

  • 4) insertAdjacentElement