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
comparing selector speed
<ul class="account-nav">
<li class="myaccount" id="myaccount"><a href="#"><span>My Account</span></a></li>
<li class="addressbook" id="addressbook"><a href="#"><span>Address Book</span></a></li>
<li class="myreviews" id="myreviews"><a href="#"><span>My Reviews</span></a></li>
<li class="loremipsum" id="loremipsum"><a href="#"><span>Lorem Ipsum</span></a></li>
<li class="orderhistory" id="orderhistory"><a href="#"><span>Order History</span></a></li>
<li class="discounts" id="discounts"><a href="#"><span>Discounts</span></a></li>
<li class="tickets" id="tickets"><a href="#"><span>Help Tickets</span></a></li>
<li class="addressbook"><a href="#"><span>Address Book</span></a></li>
</ul>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
Ready to run.
Test | Ops/sec | |
---|---|---|
find method |
| ready |
context method |
| ready |
find using class |
| ready |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.