Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Linux
Desktop
2 years ago
Test name Executions per second
Remove firstChild 2853173.5 Ops/sec
Remove lastChild 2817253.2 Ops/sec
innerHTML 2208984.2 Ops/sec
innerText 2313981.0 Ops/sec
textContent 2287996.5 Ops/sec
firstChild.remove 2861300.5 Ops/sec
range 551360.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range