DOM.find[All] vs jQuery.find

JavaScript performance comparison

Revision 3 of this test case created by Maksim Chemerisuk

Preparation code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
<script src="https://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 CCBot 2.0.0 / Other 0.0.0
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.

0 Comments