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 8004990.5 Ops/sec
Remove lastChild 8059303.0 Ops/sec
innerHTML 6515342.5 Ops/sec
innerText 6145135.5 Ops/sec
textContent 6617846.5 Ops/sec
firstChild.remove 8016251.5 Ops/sec
range 2372845.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range