jquery.init optimized

JavaScript performance comparison

Test case created by seb

Preparation code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
var jQueryOriginal = $.noConflict();
</script>
<script src="https://gist.github.com/raw/4329586/cc2b7c8de5e761cee0cf3a38ebd9e7ce908bb702/jquery.initFast.js"></script>
<script>
var jQueryFast = $.noConflict();
</script>

<div id="foo">hello</div>
    

Preparation code output

<div id="foo">hello</div>

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
jQueryOriginal("#foo")
jQueryOriginal("#foo")
pending…
jQueryFast("#foo")
jQueryFast("#foo")
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

hello