Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
Remove firstChild 7068617.5 Ops/sec
Remove lastChild 6976238.0 Ops/sec
innerHTML 5384357.0 Ops/sec
innerText 4162235.0 Ops/sec
textContent 4926082.5 Ops/sec
firstChild.remove 7015742.0 Ops/sec
range 1481822.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range