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="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<ul id="list" class="level-1">
<li class="item-i">I</li>
<li id="ii" class="item-ii">II
<ul class="level-2">
<li class="item-a">A</li>
<li class="item-b">B
<ul class="level-3">
<li class="item-1">1</li>
<li class="item-2">2</li>
<li class="item-3">3</li>
</ul>
</li>
<li class="item-c">C</li>
</ul>
</li>
<li class="item-iii">III</li>
<li class="item-iiii">IIII</li>
<li class="item-iiii">IIII</li>
<li class="item-iiii">IIII</li>
<li class="item-iiii">IIII</li>
<li class="item-iiii">IIII</li>
</ul>
var $list = $('#list');
var $item = $list.find('.item-i');
Ready to run.
Test | Ops/sec | |
---|---|---|
siblings |
| ready |
parent find first |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.