Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Cached querySelector
(version: 0)
Comparing performance of:
un vs ca
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div id="fir" class="hi"> <div id='no' class="ss"> <div id='ff' class="fox"> <button class="target"></button> <button class="target"></button> <button class="target"></button> </div> </div> </div>
Script Preparation code:
var cache = {};
Tests:
un
var hi = document.querySelector('.hi'); var ss = document.querySelector('.ss'); var hi = document.querySelector('.hi');
ca
cache.hi : document.querySelector('.hi'); cache.ss : document.querySelector('.ss'); cache.hi : document.querySelector('.hi');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
un
ca
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!
Comments
Confirm delete:
Do you really want to delete benchmark?