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 13148627.0 Ops/sec
Remove lastChild 13152162.0 Ops/sec
innerHTML 5179343.5 Ops/sec
innerText 8842552.0 Ops/sec
textContent 4996788.0 Ops/sec
firstChild.remove 13317568.0 Ops/sec
range 2501692.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range