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 5979607.0 Ops/sec
Remove lastChild 5899948.0 Ops/sec
innerHTML 2310570.2 Ops/sec
innerText 4141317.5 Ops/sec
textContent 2263866.2 Ops/sec
firstChild.remove 6024846.5 Ops/sec
range 1135470.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range