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 2880862.8 Ops/sec
Remove lastChild 2825173.5 Ops/sec
innerHTML 2270357.5 Ops/sec
innerText 2297442.2 Ops/sec
textContent 2296004.5 Ops/sec
firstChild.remove 2902630.8 Ops/sec
range 547360.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range