Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
benchmark querySelector globally and specific
(version: 0)
lala
Comparing performance of:
123 vs 1234
Created:
2 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div id='testid'></div> <div id='testid'></div> <div id='testid'></div> <div id='testid'></div> <div id='testid'></div> <div id='testid'></div> <div id="parent"> <div id='testid'></div> <div id='testid'></div> <div id='testid'></div> <div id='testid'></div> <div id='testid'></div> <div id='testid'></div> </div>
Tests:
123
document.querySelectorAll('#testid')
1234
document.getElementById('parent').querySelectorAll('#testid')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
123
1234
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:
JQuery: find by id vs find by id and tag
querySelector vs querySelectorAll vs getElementsByClassName vs querySelector (ID) vs getElementByID
querySelector vs querySelectorAll vs getElementsByClassName vs querySelector (ID) vs getElementsByID with lots of elements
querySelector vs querySelectorAll vs getElementsByClassName vs querySelector (ID) vs getElementsByID 20x
Comments
Confirm delete:
Do you really want to delete benchmark?