Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test1113
(version: 0)
nothing
Comparing performance of:
jQuery vs Vanilla JS querySelector vs Vanilla JS (get by id)
Created:
6 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <div id="testThisId"></div>
Tests:
jQuery
var el = $("#testElement")[0];
Vanilla JS querySelector
var el = document.querySelector('#testElement');
Vanilla JS (get by id)
var el = document.getElementById('testThisId');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
jQuery
Vanilla JS querySelector
Vanilla JS (get by id)
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:
spread vs for of
testthis
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?