I suspect .textContent = '' should be faster, why are benchmarks saying it isn't? It makes no sense. So let's try adding nodes to clean up?
Comparing TS enums and string constants
https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
Measure the performance of instanceOf operator vs property in operator
Create Your benchmarks
Source code: GitHub/MeasureThat.net
Report issues: MeasureThat.net/Issues
Based on: Benchmark.js
Facebook page: https://www.facebook.com/MeasureThat.Net