Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
insertAdjacentHTML vs jquery.append_
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Browser:
Firefox 126
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
insertAdjacentHTML
5K/s
jquery.append
2K/s
View exact numbers
Test name
Executions per second
✓
insertAdjacentHTML
4,711 Ops/sec
jquery.append
1,504 Ops/sec
HTML Preparation code:
<div id="parent">parent</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js'></script>
Script Preparation code:
var str = "<div id='child'>child</div>";
Tests:
insertAdjacentHTML
var parent = document.getElementById('parent'); parent.insertAdjacentHTML('beforeend', str);
jquery.append
var parent = document.getElementById('parent'); $(parent).append(str);