Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15
Safari 16
Ubuntu
Desktop
one year ago
Test name Executions per second
Remove firstChild 10239942.0 Ops/sec
Remove lastChild 10066388.0 Ops/sec
innerHTML 8909913.0 Ops/sec
innerText 8684178.0 Ops/sec
textContent 8926656.0 Ops/sec
firstChild.remove 9746279.0 Ops/sec
range 2024342.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range