Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Chrome 95
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
innerHTML += (remove) 344.0 Ops/sec
innerHTML += (display none) 151.0 Ops/sec
appendChild 1944429.6 Ops/sec
insertAdjacentElement 1901064.4 Ops/sec
insertAdjacentHTML (remove) 323082.2 Ops/sec
insertAdjacentHTML ( display none ) 262909.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )


;