Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Windows
Desktop
one year ago
Test name Executions per second
Remove firstChild 3907561.5 Ops/sec
Remove lastChild 4052434.5 Ops/sec
innerHTML 3097735.2 Ops/sec
innerText 2627434.8 Ops/sec
textContent 3006899.8 Ops/sec
firstChild.remove 4070308.8 Ops/sec
range 880253.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range