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
compares performance of $('selector') $('selector', context) $(context).find('selector') $(context).children('selector')
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="appRoot">
<div class="element1">
element1
</div>
<div class="element2">
element2
</div>
<div class="element3">
element3
</div>
<div class="element4">
element4
</div>
<div class="element5">
element5
</div>
<div class="element6">
element6
</div>
</div>
<div id="junk1">
<div class="other1">
other1
</div>
<div class="other2">
other2
</div>
<div class="other3">
other3
</div>
<div class="other4">
other4
</div>
<div class="other5">
other5
</div>
<div class="other6">
other6
</div>
</div>
<div id="junk2">
<div class="other1">
other1
</div>
<div class="other2">
other2
</div>
<div class="other3">
other3
</div>
<div class="other4">
other4
</div>
<div class="other5">
other5
</div>
<div class="other6">
other6
</div>
</div>
<div id="junk3">
<div class="other1">
other1
</div>
<div class="other2">
other2
</div>
<div class="other3">
other3
</div>
<div class="other4">
other4
</div>
<div class="other5">
other5
</div>
<div class="other6">
other6
</div>
</div>
Ready to run.
Test | Ops/sec | |
---|---|---|
plain selector |
| ready |
Context |
| ready |
.find() |
| ready |
.children() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.