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 test tries to answer question from StackOverflow: Most efficient way to use selectors in jQuery? http://stackoverflow.com/questions/4717032/most-efficient-way-to-use-selectors-in-jquery
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id="test">
<div class="testlink">
<a href="#" id="linkone" title="test">test link</a>
</div>
<div class="testmenu">
<div>
<div class="menuitem itemone">
<a href="#" title="item 1">menu item 1</a>
</div>
<div class="menuitem itemtwo">
<a href="#" title="item 2">menu item 2</a>
</div >
<div class="menuitem itemthree active">
active item
</div>
</div>
</div>
Ready to run.
Test | Ops/sec | |
---|---|---|
.active |
| ready |
div.active |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.