Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
innerHTML += (remove) 103.5 Ops/sec
innerHTML += (display none) 50.1 Ops/sec
appendChild 396072.2 Ops/sec
insertAdjacentElement 386116.1 Ops/sec
insertAdjacentHTML (remove) 60713.9 Ops/sec
insertAdjacentHTML ( display none ) 48421.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )