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="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>var a = jQuery.noConflict(), aa;</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script>var b = jQuery.noConflict(), bb;</script>
<div id="tests" style="display:none;"></div>
<script>
var i, j, ac = 0,
bc = 0,
html = "";
for (j = 0; j < 20; j++) {
html += "<div class='jq144'>";
for (i = 0; i < 5; i++) {
html += "<div>abcdefghijklmnopqrstuvwxyz</div><div>0123456789</div>";
}
html += "</div>";
}
for (j = 0; j < 20; j++) {
html += "<div class='jq150'>";
for (i = 0; i < 5; i++) {
html += "<div>abcdefghijklmnopqrstuvwxyz</div><div>0123456789</div>";
}
html += "</div>";
}
document.getElementById("tests").innerHTML = html;
aa = a(".jq144");
bb = b(".jq150");
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
.children() - jQuery 1.4.4 |
| ready |
.children() - jQuery 1.5.1 |
| ready |
.next() - jQuery 1.4.4 |
| ready |
.next() - jQuery 1.5.1 |
| ready |
.prev() - jQuery 1.4.4 |
| ready |
.prev() - jQuery 1.5.1 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.