Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Windows
Desktop
2 years ago
replaceChildren w/ fragments
139/s
replaceChildren
136/s
innerHTML w/ fragments
93/s
while w/ fragments
88/s
while w/ appendChild
84/s
View exact numbers
Test name Executions per second
replaceChildren w/ fragments 139 Ops/sec
replaceChildren 136 Ops/sec
innerHTML w/ fragments 93 Ops/sec
while w/ fragments 88 Ops/sec
while w/ appendChild 84 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: