Test name | Executions per second |
---|---|
createTextNode | 707170.0 Ops/sec |
textContent | 3111340.2 Ops/sec |
innerText | 1020772.9 Ops/sec |
append | 1685115.2 Ops/sec |
var a = document.createElement('a');
a.appendChild(document.createTextNode('text'));
a.textContent = 'text';
a.innerText = 'text';
a.append('text');