Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
JS: append vs appendChild
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Browser:
Chrome 121
Operating system:
Chrome OS 14541.0.0
Device Platform:
Desktop
Date tested:
2 years ago
appendChild
2.6M/s
append
1.9M/s
View exact numbers
Test name
Executions per second
✓
appendChild
2,600,281 Ops/sec
append
1,920,122 Ops/sec
HTML Preparation code:
<div id="container"></div>
Script Preparation code:
var container = document.getElementById("container"); var paragraph = document.createElement("p");
Tests:
append
container.append(paragraph);
appendChild
container.appendChild(paragraph);