Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
textContent vs append v11
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Browser:
Firefox 134
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
append
342K/s
textContent
266K/s
View exact numbers
Test name
Executions per second
✓
append
341,730 Ops/sec
textContent
265,582 Ops/sec
HTML Preparation code:
<div id='one'></div>
Tests:
append
let theDiv = document.getElementById('one'), theDivText = document.createTextNode("one"); theDiv.textContent = ''; theDiv.append(theDivText);
textContent
let theDiv = document.getElementById('one'), theDivText = document.createTextNode("one"); theDiv.textContent = ''; theDiv.textContent = 'one';