jQuery.find vs jQuery('')

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id='body'>
<div class="map"></div>
</div>
<script>
  var $body = $('#body');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery.find
$body.find('.map');
ready
jQuery()
$('.map', $body);
ready

Revisions

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