scripting engines

JavaScript performance comparison

Revision 2 of this test case created

Preparation code

<script type='text/javascript' src='http://code.jquery.com/jquery-1.9.1.min.js'></script>

<script type='text/javascript' src='http://zeptojs.com/zepto.js'></script>

<script type='text/javascript' src='http://www.codingjack.com/playground/jquick/js/jquick.js'></script>

<div id='div'></div>

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
for(var i = 0; i < 10000; i++) {

jQuery('#div').css('margin-top', 100);

}
pending…
Vanilla
var $ = function(e){return document.getElementById(e)};
for(var i = 0; i < 10000; i++) {
$('div').style.marginTop=100;

}
pending…
jQuick
for(var i = 0; i < 10000; i++) {

jQuick('#div').css('margin-top', 100);

}
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