Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Mac OS X 10.15
Desktop
10 months ago
Test name Executions per second
Remove firstChild 7599535.0 Ops/sec
Remove lastChild 8209002.5 Ops/sec
innerHTML 6584379.0 Ops/sec
innerText 6140820.0 Ops/sec
textContent 6229054.5 Ops/sec
firstChild.remove 8270728.0 Ops/sec
range 2390453.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range