Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Windows
Desktop
5 months ago
Test name Executions per second
replaceChildren 126.1 Ops/sec
while w/ appendChild 126.4 Ops/sec
replaceChildren w/ fragments 149.4 Ops/sec
innerHTML w/ fragments 170.4 Ops/sec
while w/ fragments 123.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • replaceChildren

  • while w/ appendChild

  • replaceChildren w/ fragments

  • innerHTML w/ fragments

  • while w/ fragments