jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Testing the performance of caching jQuery objects vs. using jQuery selectors to access the DOM repeatedly.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<section>
<h1>
Testing jQuery Variable Caching
</h1>
<p>
Testing the performance of caching jQuery objects vs. using jQuery selectors to
access the DOM repeatedly.
</p>
<ul>
<li class="item">
List Item
</li>
<li class="item">
List Item
</li>
<li class="item">
List Item
</li>
<li class="item">
List Item
</li>
</ul>
</section>Ready to run.
| Test | Ops/sec | |
|---|---|---|
| Not using cached variables | | ready |
| Using cached variables | | ready |
| Not using cached variables(while) | | ready |
| Using cached variables(while) | | ready |
| Using cached variables2(while) | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.