Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
innerHTML 3618259.2 Ops/sec
removechild & appendChild(cloneNode()) 6058371.5 Ops/sec
replaceChildren 1821877.8 Ops/sec
Custom deleteChildren 6126553.5 Ops/sec
Custom replaceChildren via append 1657069.6 Ops/sec
Custom replaceChildren via appendChild 5998019.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • innerHTML

  • removechild & appendChild(cloneNode())

  • replaceChildren

  • Custom deleteChildren

  • Custom replaceChildren via append

  • Custom replaceChildren via appendChild


;