Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Linux
Desktop
one month ago
Test name Executions per second
Remove firstChild 2952620.8 Ops/sec
Remove lastChild 2958239.8 Ops/sec
innerHTML 2072588.5 Ops/sec
innerText 1877937.4 Ops/sec
textContent 2115396.8 Ops/sec
firstChild.remove 3002547.2 Ops/sec
range 569176.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range


;