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 traversing functions of the JQuery engine
<div>
<div>
<span>
<ul>
<li>This is the first item <a href="#">I am an anchor</a></li>
<li>This is a parent<div>I am a child</div><div>I am a sibling</div></li>
<li>I am a sibling</li>
</ul></span>
<div>I'm the next and closest div.</div>
</div>
<span>I'm a span</span>
<div>I'm the next div</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>Ready to run.
| Test | Ops/sec | |
|---|---|---|
| children() | | ready |
| closest() | | ready |
| find() | | ready |
| next() | | ready |
| nextAll() | | ready |
| offsetParent() | | ready |
| parent() | | ready |
| parentsUntil() | | ready |
| prev() | | ready |
| prevAll() | | ready |
| sibling() | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.