Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Windows
Desktop
11 months ago
Test name Executions per second
Remove firstChild 7395625.5 Ops/sec
Remove lastChild 7418975.0 Ops/sec
innerHTML 5370719.0 Ops/sec
innerText 4738782.0 Ops/sec
textContent 5311582.0 Ops/sec
firstChild.remove 7413419.0 Ops/sec
range 1598175.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range