Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Element append vs appendChild
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0
Browser:
Firefox 146
Operating system:
Linux
Device Platform:
Desktop
Date tested:
6 months ago
Element.appendChild()
6.1M/s
Element.append()
5.0M/s
View exact numbers
Test name
Executions per second
✓
Element.appendChild()
6,080,592 Ops/sec
Element.append()
5,014,488 Ops/sec
Script Preparation code:
var el1 = document.createElement('div') var el2 = document.createElement('div') var child1 = document.createElement('div') var child2 = document.createElement('div')
Tests:
Element.append()
el1.append(child1)
Element.appendChild()
el2.appendChild(child2)