Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement 2025
innerHTML vs insertAdjacentHTML vs appendChild vs insertAdjacentElement
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Browser:
Firefox 135
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
1) innerHTML
264611.9 Ops/sec
2) insertAdjacentHTML
199351.7 Ops/sec
HTML Preparation code:
<section> <div> <ul> <li>List item</li> <li>List item</li> <li>List item</li> <li>List item</li> <li>List item</li> <li>List item</li> <li>List item</li> <li>List item</li> </ul> </div> </section>
Script Preparation code:
let div = document.querySelector("div");
Tests:
1) innerHTML
div.innerHTML = '<p>Paragraph of text</p><p>Paragraph of text</p><p>Paragraph of text</p><p>Paragraph of text</p><p>Paragraph of text</p>';
2) insertAdjacentHTML
div.replaceChildren(); div.insertAdjacentHTML('beforeend', '<p>Paragraph of text</p><p>Paragraph of text</p><p>Paragraph of text</p><p>Paragraph of text</p><p>Paragraph of text</p>');