Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Windows
Desktop
one year ago
Test name Executions per second
Remove firstChild 5118493.5 Ops/sec
Remove lastChild 5188258.0 Ops/sec
innerHTML 3859693.2 Ops/sec
innerText 3366038.8 Ops/sec
textContent 3887538.5 Ops/sec
firstChild.remove 5197904.5 Ops/sec
range 1220625.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range