find method

Benchmark created by Rasmita Dash on


Preparation HTML

< div id = 'Mydiv' > 
  <label> Label 1 </label>
  <label class='myClass'>Label 2</label >
  <label > Label 3 </label>
</div >
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
with find

$('#Mydiv').find('label.myClass').hide();
ready
withoutfind

$('#Mydiv label.myClass').hide()
 
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Rasmita Dash on