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 of .children() and .find()
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id='goals'>
<div id='goals_image' class='image_holder'><img src='images/goals.png'><img class='blue_image' src='images/goals_blue.png'></div>
<div id='goals_text'>
<span class='header'>Our goals</span><br/>
When it comes to treading lighter on the earth, we always want to be better tomorrow than we are today. That's why we have measurable targets for people and nature.
</div>
<div class='more'>Learn more</div>
</div>
Ready to run.
Test | Ops/sec | |
---|---|---|
children() |
| ready |
find() |
| ready |
children() no variable |
| ready |
find() no variable |
| ready |
children() 1 sub |
| ready |
find() 1 sub |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.