Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) 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) 134.0 Ops/sec
innerHTML += (display none) 70.7 Ops/sec
appendChild 681512.4 Ops/sec
insertAdjacentElement 609008.6 Ops/sec
insertAdjacentHTML (remove) 91394.8 Ops/sec
insertAdjacentHTML ( display none ) 78007.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )