jquery cache?

JavaScript performance comparison

Test case created

Preparation code

<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<div id="head"></div>
 
<script>
Benchmark.prototype.setup = function() {
    var $head = $('#head')
    var css = { position: 'fixed' }
};
</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
pure
jQuery('#head').css({ position: 'fixed' })
pending…
cached
$head.css(css)
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