Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Windows
Desktop
one year ago
Test name Executions per second
Remove firstChild 5296597.5 Ops/sec
Remove lastChild 5456966.5 Ops/sec
innerHTML 3960745.5 Ops/sec
innerText 3482800.5 Ops/sec
textContent 4010607.2 Ops/sec
firstChild.remove 5438998.0 Ops/sec
range 1213848.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range