Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.5000.0 Iron Safari/537.36
Chrome 98
Windows 7
Desktop
10 months ago
Test name Executions per second
Remove firstChild 2710718.5 Ops/sec
Remove lastChild 2718505.2 Ops/sec
innerHTML 2187302.2 Ops/sec
innerText 1623062.8 Ops/sec
textContent 1999733.9 Ops/sec
firstChild.remove 2737272.8 Ops/sec
range 512851.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Remove firstChild

  • Remove lastChild

  • innerHTML

  • innerText

  • textContent

  • firstChild.remove

  • range