Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Chrome 92
Windows
Desktop
3 years ago
Test name Executions per second
innerHTML += (remove) 91.7 Ops/sec
innerHTML += (display none) 27.0 Ops/sec
appendChild 435021.2 Ops/sec
insertAdjacentElement 418298.6 Ops/sec
insertAdjacentHTML (remove) 55107.0 Ops/sec
insertAdjacentHTML ( display none ) 53164.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )


;