jquery.init optimized (v2)

Revision 2 of this benchmark created on


Preparation HTML

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


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

Test runner

Ready to run.

Testing in
TestOps/sec
jQueryOriginal("#foo")
jQueryOriginal("#foo")
ready
jQueryFast("#foo")
jQueryFast("#foo")
ready

Revisions

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