Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
createTextNode vs textContent vs innerText vs innerHTML
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; arm_64; Android 14; 22071219CG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.6478.41 YaBrowser/24.7.6.41.00 SA/3 Mobile Safari/537.36
Browser:
Yandex Browser 24
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
createTextNode
952494.6 Ops/sec
textContent
3224327.0 Ops/sec
innerText
1273591.1 Ops/sec
innerHTML
613316.9 Ops/sec
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';