Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
Chrome 86
Windows
Desktop
4 years ago
Test name Executions per second
innerHTML += (remove) 208.7 Ops/sec
innerHTML += (display none) 104.6 Ops/sec
appendChild 1030449.9 Ops/sec
insertAdjacentElement 984850.3 Ops/sec
insertAdjacentHTML (remove) 163228.8 Ops/sec
insertAdjacentHTML ( display none ) 146437.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )