scripting-engines-two

JavaScript performance comparison

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></div>
<script>
Benchmark.prototype.setup = function() {
    var p;
};
</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
for (var i = 0; i < 1000; i++) {

  p = jQuery('div').children('p');

}
pending…
Zepto
for (var i = 0; i < 1000; i++) {

  p = Zepto('div').children('p');

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

  p = jQuick('div').children('p');

}
pending…

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

Compare results of other browsers

0 comments

Add a comment