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
This testcase compares the performance from .children() and .find()
<form id="formElem" name="formElem" action="" method="post">
<fieldset class="step one">
<img src="1.jpg" class="image1">
</fieldset>
<fieldset class="step two">
<span class="span">
<img src="2.jpg" class="image2">
</span>
</fieldset>
<fieldset class="step three">
<img src="3.jpg" class="image3">
</fieldset>
</form>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
Ready to run.
Test | Ops/sec | |
---|---|---|
one level - children |
| ready |
one level - find |
| ready |
one level - select child |
| ready |
two levels - children |
| ready |
two levels - find |
| ready |
three levels - children & find |
| ready |
three levels - find |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.