DOM.find[All] vs jQuery.find

JavaScript performance comparison

Revision 3 of this test case created by Maksim Chemerisuk

Info

Compare performance of the better-dom library and jquery in typical cases

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
<script src="//rawgithub.com/chemerisuk/better-dom/v1.6.0/dist/better-dom.js"></script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
jQuery("a")
jQuery("a");
pending…
DOM.findAll("a")
DOM.findAll("a");
pending…
DOM.find("a")
DOM.find("a");
pending…
jQuery("body div")
jQuery("body div");
pending…
DOM.findAll("body div")
DOM.findAll("body div");
pending…
DOM.find("body div")
DOM.find("body div");
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment