Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36
Chrome 88
Windows
Desktop
3 years ago
Test name Executions per second
innerHTML += (remove) 187.0 Ops/sec
innerHTML += (display none) 93.1 Ops/sec
appendChild 1115082.4 Ops/sec
insertAdjacentElement 1083214.1 Ops/sec
insertAdjacentHTML (remove) 109631.8 Ops/sec
insertAdjacentHTML ( display none ) 84251.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )


;