Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Chrome 87
Windows
Desktop
3 years ago
Test name Executions per second
innerHTML += (remove) 172.8 Ops/sec
innerHTML += (display none) 80.3 Ops/sec
appendChild 765057.1 Ops/sec
insertAdjacentElement 794709.6 Ops/sec
insertAdjacentHTML (remove) 94950.5 Ops/sec
insertAdjacentHTML ( display none ) 76236.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )


;