Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51
Chrome 85
Windows
Desktop
4 years ago
Test name Executions per second
innerHTML += (remove) 138.9 Ops/sec
innerHTML += (display none) 69.6 Ops/sec
appendChild 1038345.2 Ops/sec
insertAdjacentElement 920510.1 Ops/sec
insertAdjacentHTML (remove) 58111.7 Ops/sec
insertAdjacentHTML ( display none ) 48329.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )