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="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div class="cms-copy countdown" id="countdown_holder">
<div class="days"><span class="large" id="days"></span>days</div>
<div class="hours"><span class="large" id="hours"></span>hours</div>
<div class="mins"><span class="large" id="mins"></span>minutes</div>
</div>
var parent=document.getElementById("countdown_holder");
var days=parent.children[0].children[0];
var hours=parent.children[1].children[0];
var minutes=parent.children[2].children[0];
Ready to run.
Test | Ops/sec | |
---|---|---|
1 DOM selection, children filled in |
| ready |
3 DOM selections, no children |
| ready |
jQuery |
| ready |
define each once |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.