Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Remove firstChild 4946128.0 Ops/sec
Remove lastChild 4938606.5 Ops/sec
innerHTML 4167184.2 Ops/sec
innerText 3530947.8 Ops/sec
textContent 4001354.8 Ops/sec
firstChild.remove 4924500.5 Ops/sec
range 1076908.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range