Run details:
Mozilla/5.0 (Android 10; Mobile; rv:122.0) Gecko/122.0 Firefox/122.0
Firefox Mobile 122
Android
Mobile
11 months ago
Test name Executions per second
Remove firstChild 3517541.2 Ops/sec
Remove lastChild 3502598.5 Ops/sec
innerHTML 2726931.5 Ops/sec
innerText 2484163.8 Ops/sec
textContent 2776596.0 Ops/sec
firstChild.remove 3535706.0 Ops/sec
range 753125.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range