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
Updated to latest jQuery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
</script>
<div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div id="container">
<div>
</div>
<div>
</div>
<div class="robotarm">
</div>
<div>
<div class="robotarm">
</div>
</div>
<div class="robotarm">
</div>
<div class="robotarm">
</div>
<div>
</div>
</div>
</div>
<div>
<div id="container2">
<div>
</div>
<div>
</div>
<div class="robotarm2">
</div>
<div>
<div class="robotarm2">
</div>
</div>
<div class="robotarm2">
</div>
<div class="robotarm2">
</div>
<div>
</div>
</div>
</div>
var $ = window.$,
$container = $("#container"),
container = $container[0],
noJQContainer = document.getElementById("container");
//Added customFind function with querySelectorAll browser support test
Object.prototype.customFind = function() {
if (document.querySelectorAll) {
return function(selector) {
return this.querySelectorAll(selector);
}
} else {
return function(selector) {
return $(this).find(selector);
}
}
}();
Ready to run.
Test | Ops/sec | |
---|---|---|
Descendant Selector |
| ready |
Find |
| ready |
Descendant Selector 2 |
| ready |
context |
| ready |
context2 |
| ready |
context3 |
| ready |
context4 |
| ready |
Find 2 |
| ready |
no jQuery querySelectorAll |
| ready |
querySelectorAll CompatibilityCheked |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.