Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement 2
innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement 2
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Browser:
Firefox 115
Operating system:
Windows 7
Device Platform:
Desktop
Date tested:
one month ago
Test name
Executions per second
2) insertAdjacentHTML
211115.0 Ops/sec
3) appendChild
2458513.2 Ops/sec
4) insertAdjacentElement
2117292.5 Ops/sec
Script Preparation code:
box1 = document.createElement("div"); box2 = document.createElement("div");
Tests:
2) insertAdjacentHTML
box1.insertAdjacentHTML('beforeend', box2);
3) appendChild
box1.appendChild(box2);
4) insertAdjacentElement
box1.insertAdjacentElement('beforeend', box2);