replaceChildren vs documentFragment [2]

one year ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Test name Executions per second
replaceChildren 1179048.0 Ops/sec
append documentFragment 746938.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • replaceChildren

  • append documentFragment

Open this result on MeasureThat.net