Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
createTextNode, textContent, innerText, innerHTML, nodeValue
(version: 0)
Comparing performance of:
createTextNode vs textContent vs innerText vs innerHTML vs nodeValue
Created:
6 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var a = document.createElement('a');
Tests:
createTextNode
a.appendChild(document.createTextNode('text'));
textContent
a.textContent = 'text';
innerText
a.innerText = 'text';
innerHTML
a.innerHTML = 'text';
nodeValue
a.nodeValue = 'text';
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
createTextNode
textContent
innerText
innerHTML
nodeValue
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Get textContent, innerText, innerHTML, nodeValue
textContent, innerText, innerHTML, nodeValue get value perf
createTextNode, textContent, innerContent, innerText, innerHTML, nodeValue
textContent, nodeValue set value perf
Comments
Confirm delete:
Do you really want to delete benchmark?