Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Vanilla vs jQuery 2
(version: 0)
Comparing performance of:
Vanilla addClass vs Jquery addClass vs Vanilla find element vs jQuery
Created:
7 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div class="test"></div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js'></script>
Tests:
Vanilla addClass
document.querySelector(".test").classList.add("next-class");
Jquery addClass
$(document).find(".test").addClass("next-class");
Vanilla find element
document.querySelector(".test");
jQuery
$(document).find(".test");
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
Vanilla addClass
Jquery addClass
Vanilla find element
jQuery
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
reparsing jQuery speed test
Vanilla vs Jquery OPS/SEC 2
Compare jQuery 3.6.0 vs 3.2.1 performance
Compare jQuery 3.6.1 vs. 3.2.1 Performance
jquery3.6.0 vs jquery3.7.0
Comments
Confirm delete:
Do you really want to delete benchmark?