jquery perf test (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id="parent">
<div class="firstChild">
<div class="secondChild"></div>
</div>
</div>

Setup

var parent = $('#parent);

Test runner

Ready to run.

Testing in
TestOps/sec
find
var child = parent.find('.secondChild');
ready
scope
var child = $('.secondChild', parent);
ready

Revisions

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