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
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<div id="page-content">
<p class="my-class"></p>
<p class="my-class2">
<p class="my-class"></p>
</p>
<p class="my-class3"></p>
<p class="my-class4"></p>
<p class="my-class5">
<p class="my-class"></p>
</p>
<p class="my-class6"></p>
<p class="my-class7"></p>
<p class="my-class8"></p>
<p class="my-class9"></p>
<p class="my-class"></p>
</div>var $pageContent = $('#page-content');Ready to run.
| Test | Ops/sec | |
|---|---|---|
| $('#page-content .my-class') | | ready |
| $('#page-content p.my-class') | | ready |
| $('.my-class', $('#page-content')) | | ready |
| $('p.my-class', $('#page-content')) | | ready |
| $('.my-class', '#page-content') | | ready |
| $('p.my-class', '#page-content') | | ready |
| $('.my-class', $pageContent) | | ready |
| $('p.my-class', $pageContent) | | ready |
| $pageContent.find('.my-class') | | ready |
| $pageContent.find('p.my-class') | | ready |
| $pageContent.find(':first') | | ready |
| $pageContent.first() | | ready |
| $pageContent.find(':first-child') | | ready |
| $pageContent.find('> .my-class') | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.