Test name | Executions per second |
---|---|
createTextNode | 474225.7 Ops/sec |
textContent | 978237.4 Ops/sec |
innerText | 619704.6 Ops/sec |
innerHTML | 1016747.4 Ops/sec |
var a = document.createElement('a');
a.appendChild(document.createTextNode('text'));
a.textContent = 'text';
a.innerText = 'text';
a.innerHTML = 'text';