jquery fresh v cashed

Benchmark created by Emil on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="cacheMe">
  <p>
    Some text
  </p>
  <div>
    more content
  </div>
  <input value="More Text" />
</div>
<script>
  var cache = $('#cacheMe');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Searching the cache
cache.find('p');
ready
Direct
$('#cacheMe p')
ready

Revisions

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