Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0
Firefox 97
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
innerHTML += (remove) 201.6 Ops/sec
innerHTML += (display none) 117.5 Ops/sec
appendChild 20568.7 Ops/sec
insertAdjacentElement 15413.8 Ops/sec
insertAdjacentHTML (remove) 215937.8 Ops/sec
insertAdjacentHTML ( display none ) 178433.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML += (remove)

  • innerHTML += (display none)

  • appendChild

  • insertAdjacentElement

  • insertAdjacentHTML (remove)

  • insertAdjacentHTML ( display none )