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
Checking selector performance in different jQuery versions.
var bmi_SafeAddOnload = function() {}; // stupid phone tether is injecting...
<script src="https://code.jquery.com/jquery-1.9.0.min.js"></script>
<script>
var $190 = jQuery.noConflict();
</script>
<script src="https://code.jquery.com/jquery-1.8.2.min.js"></script>
<script>
var $182 = jQuery.noConflict();
</script>
<script src="https://code.jquery.com/jquery-1.4.2.min.js"></script>
<script>
var $142 = jQuery.noConflict();
</script>
<div class="wrapper">
<div class="innerWrapper">
<div class="button">
<a href="" id="button" class="buttonRef">
<span class="buttonText">Text</span>
</a>
</div>
</div>
</div>
<script>
var context90 = $190("div.wrapper");
var context82 = $182("div.wrapper");
var context42 = $142("div.wrapper");
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Get - Class 1.4.2 |
| ready |
Get - Class 1.8.2 |
| ready |
Get - Class 1.9.0 |
| ready |
Context - Class 1.4.2 |
| ready |
Context - Class 1.8.2 |
| ready |
Context - Class 1.9.0 |
| ready |
Find - Class 1.4.2 |
| ready |
Find - Class 1.8.2 |
| ready |
Find - Class 1.9.0 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.