Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Linux
Desktop
one year ago
Test name Executions per second
Remove firstChild 1984765.4 Ops/sec
Remove lastChild 1930919.0 Ops/sec
innerHTML 695385.8 Ops/sec
innerText 1044483.1 Ops/sec
textContent 662851.1 Ops/sec
firstChild.remove 1986597.2 Ops/sec
range 376807.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range