Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Ubuntu
Desktop
3 years ago
Test name Executions per second
innerHTML += (remove) 54.5 Ops/sec
innerHTML += (display none) 21.3 Ops/sec
appendChild 444273.9 Ops/sec
insertAdjacentElement 460971.3 Ops/sec
insertAdjacentHTML (remove) 38805.0 Ops/sec
insertAdjacentHTML ( display none ) 27342.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )