Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Vanilla JS VS JQuery DOM perfomance Loop
(version: 0)
Vanilla JS VS JQuery DOM perfomance
Comparing performance of:
Vanilla JS vs Jquery
Created:
5 years ago
by:
Guest
Go to the latest result
HTML Preparation code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <div id="target"></div>
Tests:
Vanilla JS
const c = document.createDocumentFragment(); for(let i = 0; i < 10000; i++) { const e = document.createElement('div'); e.className = 'test-div'; c.appendChild(e); } document.getElementById('target').appendChild(c);
Jquery
for(let i = 0; i < 10000; i++) { $('#target').append($('<div />').addClass('test-div')); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Vanilla JS
Jquery
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Browser/OS:
Chrome 124 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Vanilla JS
39/s
Jquery
6/s
View exact numbers
Test name
Executions per second
✓
Vanilla JS
39 Ops/sec
Jquery
6 Ops/sec
Related benchmarks
Vanilla JS VS JQuery DOM perfomance + getbyid(elId)
addEventListener() vs jQuery.on() with mouseEnter
addEventListener() vs jQuery.on() with click
Comments
Confirm delete:
Do you really want to delete benchmark?