asdfasfasfa

JavaScript performance comparison

Test case created by aisdhsiadasldjsa

Preparation code

<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li><li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li><script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

</ul>

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
for
for (var i = 0, length = $("li").length; i < length; i++) {
        $("li").eq(i).css("outline","1px solid red");
};
pending…
each
$("li").each(function(){
$(this).css("outline","1px solid red");
});
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