Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
2 months ago
Test name Executions per second
Remove firstChild 1661951.8 Ops/sec
Remove lastChild 1751454.5 Ops/sec
innerHTML 907765.2 Ops/sec
innerText 1232364.9 Ops/sec
textContent 857328.6 Ops/sec
firstChild.remove 1805205.4 Ops/sec
range 483489.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range