Run details:
Mozilla/5.0 (iPad; CPU OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Mobile/15E148 Safari/604.1
Mobile Safari 13
iOS 13.7
Tablet
4 years ago
Test name Executions per second
innerHTML += (remove) 333.4 Ops/sec
innerHTML += (display none) 151.3 Ops/sec
appendChild 2966414.8 Ops/sec
insertAdjacentElement 2814028.5 Ops/sec
insertAdjacentHTML (remove) 264579.3 Ops/sec
insertAdjacentHTML ( display none ) 231963.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )