Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Windows
Desktop
11 months ago
Test name Executions per second
Remove firstChild 11086331.0 Ops/sec
Remove lastChild 11111786.0 Ops/sec
innerHTML 286944.4 Ops/sec
innerText 6961188.0 Ops/sec
textContent 8099911.0 Ops/sec
firstChild.remove 10736424.0 Ops/sec
range 2368502.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range