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.
<script src="//code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
var $172 = jQuery.noConflict();
</script>
<script src="//code.jquery.com/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
var $182 = jQuery.noConflict();
</script>
<script src="//code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
var $142 = jQuery.noConflict();
</script>
<style type="text/css">
.content {
padding: 0px 10px;
margin: 0px 5px;
border: 1px solid orange;
}
</style>
<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 context72 = $172("div.wrapper");
var context82 = $182("div.wrapper");
var context42 = $142("div.wrapper");
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
$142(".class") |
| ready |
$182(".class") |
| ready |
$172(".class") |
| ready |
$142("#id") |
| ready |
$182("#id") |
| ready |
$172("#id") |
| ready |
Find - Class 1.4.2 |
| ready |
Find - Class 1.8.2 |
| ready |
Find - Class 1.7.2 |
| ready |
width - Clas 1.4.2 |
| ready |
width - Clas 1.8.2 |
| ready |
width - Clas 1.7.2 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.