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:
3 months ago
Test name
Executions per second
Element.append()
5014488.0 Ops/sec
Element.appendChild()
6080591.5 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)