Test name | Executions per second |
---|---|
createTextNode | 224898.7 Ops/sec |
textContent | 3780476.0 Ops/sec |
innerText | 956715.7 Ops/sec |
innerHTML | 169958.3 Ops/sec |
var a = document.createElement('a');
a.appendChild(document.createTextNode('text'));
a.textContent = 'text';
a.innerText = 'text';
a.innerHTML = 'text';