jQuery Cache / No-Cache

Benchmark created by Benny Bennet on


Preparation HTML

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

<div id="test">HELLO</div>

Setup

var domEl = document.getElementById('test');

Test runner

Ready to run.

Testing in
TestOps/sec
Cache
var $el = $(domEl);
$el.width('100px');
ready
No-Cache
$(domEl).width('100px');
ready

Revisions

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