Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36
Chrome 88
Windows
Desktop
3 years ago
Test name Executions per second
innerHTML += (remove) 97.5 Ops/sec
innerHTML += (display none) 50.0 Ops/sec
appendChild 589585.1 Ops/sec
insertAdjacentElement 625356.9 Ops/sec
insertAdjacentHTML (remove) 74448.9 Ops/sec
insertAdjacentHTML ( display none ) 50247.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )


;