Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
one year ago
Test name Executions per second
Remove firstChild 5888072.5 Ops/sec
Remove lastChild 5893818.0 Ops/sec
innerHTML 2324254.5 Ops/sec
innerText 4096815.5 Ops/sec
textContent 2284761.2 Ops/sec
firstChild.remove 5976434.5 Ops/sec
range 1102622.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range