Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
createTextNode vs textContent vs innerText vs append vs new Text
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Browser:
Chrome 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
textContent
21.0M/s
append
8.6M/s
createTextNode
7.2M/s
innerText
6.7M/s
new text
5.4M/s
View exact numbers
Test name
Executions per second
✓
textContent
20,964,794 Ops/sec
append
8,583,091 Ops/sec
createTextNode
7,247,802 Ops/sec
innerText
6,700,254 Ops/sec
new text
5,372,406 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';
append
a.append('text');
new text
a.appendChild(new Text('text'));