Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36
Chrome 89
Windows
Desktop
3 years ago
Test name Executions per second
innerHTML += (remove) 118.1 Ops/sec
innerHTML += (display none) 59.1 Ops/sec
appendChild 678902.6 Ops/sec
insertAdjacentElement 589004.8 Ops/sec
insertAdjacentHTML (remove) 74249.7 Ops/sec
insertAdjacentHTML ( display none ) 63294.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )