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
http://jqfundamentals.com/#chapter-9 says "Be specific on the right-hand side of your selector, and less specific on the left.", is this true? The optimized according to this book is the second test here.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div class="div1"><span class="s1"></span><span class="s2"></span><span class="s3"></span><span class="s4"></span><span class="s5"></span><span class="s6"></span><span class="s7"></span><span class="s8"></span><span class="s9"></span></div>
<div class="div2"><span class="s11"></span><span class="s12"></span><span class="s13"></span><span class="s14"></span><span class="s15"></span><span class="s16"></span><span class="s17"></span><span class="s18"></span><span class="s19"></span></div>
<div class="div3"><span class="s21"></span><span class="s22"></span><span class="s23"></span><span class="s4"></span><span class="s25"></span><span class="s26"></span><span class="s7"></span><span class="s28"></span><span class="s29"></span></div>
Ready to run.
Test | Ops/sec | |
---|---|---|
Specific on left hand |
| ready |
Specific on right hand |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.