Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36
Chrome 75
Windows
Desktop
5 years ago
Test name Executions per second
innerHTML += (remove) 128.7 Ops/sec
innerHTML += (display none) 78.5 Ops/sec
appendChild 1165292.9 Ops/sec
insertAdjacentElement 1058459.8 Ops/sec
insertAdjacentHTML (remove) 68650.8 Ops/sec
insertAdjacentHTML (display none) 65885.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )


;