Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
jQuery selector vs find
(version: 1)
Comparing performance of:
jQuery raw vs jQuery find
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <div class="outer"> <div class="inner"></div> </div>
Tests:
jQuery raw
$('.outer .inner').on('click', function (e) {});
jQuery find
const $outer = $('.outer'); $outer.find('.inner').on('click', function (e) {});
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
jQuery raw
jQuery find
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser/OS:
Chrome 133 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
jQuery raw
849999.4 Ops/sec
jQuery find
616466.9 Ops/sec
Related benchmarks:
jQuery Selector
Simple Test of Finding Document Element by Id
vanilla vs jquery test 2
find vs. direct selection
find vs context
selector vs context
JQuery: selector for find by class
jQuery selector vs find (with prep var)
jq find vs vanilla find
Comments
Confirm delete:
Do you really want to delete benchmark?