Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Windows
Desktop
one month ago
Test name Executions per second
Remove firstChild 4366030.5 Ops/sec
Remove lastChild 4399025.0 Ops/sec
innerHTML 3327987.8 Ops/sec
innerText 3028392.5 Ops/sec
textContent 3355029.5 Ops/sec
firstChild.remove 4330508.5 Ops/sec
range 1141219.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range