Test name | Executions per second |
---|---|
createTextNode | 757822.1 Ops/sec |
textContent | 7539141.5 Ops/sec |
innerText | 1347914.1 Ops/sec |
innerHTML | 150401.2 Ops/sec |
var a = document.createElement('a');
a.appendChild(document.createTextNode('text'));
a.textContent = 'text';
a.innerText = 'text';
a.innerHTML = 'text';