Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Mobile Safari/537.36
Chrome Mobile 117
Android
Mobile
one year ago
Test name Executions per second
Remove firstChild 3304730.8 Ops/sec
Remove lastChild 3190835.2 Ops/sec
innerHTML 2804283.8 Ops/sec
innerText 2102958.5 Ops/sec
textContent 1925340.5 Ops/sec
firstChild.remove 2641497.0 Ops/sec
range 262147.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range