Test name | Executions per second |
---|---|
inner | 400443.1 Ops/sec |
fragment | 254161.5 Ops/sec |
const el = document.createElement('div');
el.innerText = 'asssssssssss'
document.documentElement.appendChild(el);
const fragment = document.createDocumentFragment();
const el = document.createElement('div');
el.innerText = 'asssssssssss'
fragment.appendChild(el);
document.documentElement.appendChild(fragment);