Simple jQuery & ExtCore Comparisson

JavaScript performance comparison

Revision 6 of this test case created

Info

Im big fan of jQuery. I love them, but i need performance. Here is test of some basic operation that often used.

Now, what im thinking?

Preparation code

<div id="select_me">who fast enough in selecting this div?</div>

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/ext-core/3.1.0/ext-core.js"></script>
<script>
Benchmark.prototype.teardown = function() {
    Ext.elCache = {};
};
</script>

Preparation code output

who fast enough in selecting this div?

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Plain Javascript
var withoutlibrary = document.getElementById("select_me");
 
pending…
jQuery 2.0.0
var jqueryid = $("#select_me");
 
pending…
ExtCore 3.1.0
var extget = Ext.get("select_me");
 
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