Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0Mobile/12F69 Safari/600.1.4
Mobile Safari 8
iOS 8.3
Mobile
2 years ago
Test name Executions per second
1) innerHTML += 2032514.9 Ops/sec
2) insertAdjacentHTML 2030381.9 Ops/sec
3) appendChild 4007161.2 Ops/sec
4) insertAdjacentElement 3804816.2 Ops/sec
Script Preparation code:
Tests:
  • 1) innerHTML +=

  • 2) insertAdjacentHTML

  • 3) appendChild

  • 4) insertAdjacentElement


;