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 3793238.2 Ops/sec
Remove lastChild 2812497.8 Ops/sec
innerHTML 3451391.2 Ops/sec
innerText 1876941.0 Ops/sec
textContent 3449435.8 Ops/sec
firstChild.remove 4597195.0 Ops/sec
range 687822.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range