Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
one month ago
Test name Executions per second
Remove firstChild 3964271.0 Ops/sec
Remove lastChild 3979825.5 Ops/sec
innerHTML 1900279.4 Ops/sec
innerText 2598119.0 Ops/sec
textContent 1911228.2 Ops/sec
firstChild.remove 3905158.5 Ops/sec
range 1050720.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range