jquery.init optimized (v5)

Revision 5 of this benchmark created on


Preparation HTML

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

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

Test runner

Ready to run.

Testing in WebKit 537.36 / undefined
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.