jQuery Cache / No-Cache (v2)

Revision 2 of this benchmark created 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');
$el.width('200px');
$el.width('300px');
$el.width('400px');
$el.width('500px');
$el.width('600px');
ready
No-Cache
$(domEl).width('100px');
$(domEl).width('200px');
$(domEl).width('300px');
$(domEl).width('400px');
$(domEl).width('500px');
$(domEl).width('600px');
ready

Revisions

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