Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Linux
Desktop
one year ago
Test name Executions per second
Remove firstChild 5168342.0 Ops/sec
Remove lastChild 5173946.0 Ops/sec
innerHTML 4321698.5 Ops/sec
innerText 3312886.0 Ops/sec
textContent 3870422.0 Ops/sec
firstChild.remove 5250602.0 Ops/sec
range 1299842.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range