Test name | Executions per second |
---|---|
createTextNode | 721699.2 Ops/sec |
textContent | 10970363.0 Ops/sec |
innerText | 1689124.1 Ops/sec |
innerHTML | 285238.8 Ops/sec |
var a = document.createElement('a');
a.appendChild(document.createTextNode('text'));
a.textContent = 'text';
a.innerText = 'text';
a.innerHTML = 'text';