Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Remove firstChild 9294717.0 Ops/sec
Remove lastChild 9354511.0 Ops/sec
innerHTML 7423468.0 Ops/sec
innerText 6872765.0 Ops/sec
textContent 7340591.0 Ops/sec
firstChild.remove 9806351.0 Ops/sec
range 2821169.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range