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 type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script>
var $jq191 = $.noConflict(true);
</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
</script>
<script>
var $jq1101 = $.noConflict(true);
</script>
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.0.min.js">
</script>
<script>
var $jq210 = $.noConflict(true);
</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 context191 = $jq191("div.wrapper");
var context1101 = $jq1101("div.wrapper");
var context210 = $jq210("div.wrapper");
</script>
function getClassTests($) {
var item = $(".buttonRef");
}
function contextTests($, context) {
var item = $(".buttonRef", context);
}
function findTests(context) {
var item = context.find(".buttonRef");
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Get Class 1.9.1 |
| ready |
Get Class 1.10.1 |
| ready |
Get Class 2.1.0 |
| ready |
Context Class 1.9.1 |
| ready |
Context Class 1.10.1 |
| ready |
Context Class 2.1.0 |
| ready |
Find 1.9.1 |
| ready |
Find 1.10.1 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.