jQuery Find Vs Sizzle

Benchmark created by Steven Hall on


Description

Testing some different methods of selecting elements in jQuery.

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<div id="outer">
  <div id="inner">

  </div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
Sizzle
$('#outer #inner').html('finished');
ready
Find
$('#outer').find('#inner').html('finished');
ready

Revisions

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

  • Revision 1: published by Steven Hall on
  • Revision 2: published by Timmy Willison on
  • Revision 3: published by Adam Bankin on
  • Revision 4: published on
  • Revision 6: published on