Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Windows
Desktop
4 years ago
Test name Executions per second
innerHTML += (remove) 111.5 Ops/sec
innerHTML += (display none) 56.7 Ops/sec
appendChild 22106.5 Ops/sec
insertAdjacentElement 21291.4 Ops/sec
insertAdjacentHTML (remove) 132964.0 Ops/sec
insertAdjacentHTML ( display none ) 133627.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )