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="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>var a = jQuery.noConflict(), aa;</script>
<script src="http://code.jquery.com/jquery-1.5.js"></script>
<script>var b = jQuery.noConflict(), bb;</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script>var c = jQuery.noConflict(), cc;</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>var d = jQuery.noConflict(), dd;</script>
<div id="tests" style="display:none;"></div>
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>";
}
for (j = 0; j < 20; j++) {
html += "<div class='jq164'>";
for (i = 0; i < 5; i++) {
html += "<div>abcdefghijklmnopqrstuvwxyz</div><div>0123456789</div>";
}
html += "</div>";
}
for (j = 0; j < 20; j++) {
html += "<div class='jq172'>";
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");
cc = c(".jq164");
dd = d(".jq172");
Ready to run.
Test | Ops/sec | |
---|---|---|
.parent() - jQuery 1.4.4 |
| ready |
.parent() - jQuery 1.5 |
| ready |
.parent() - jQuery 1.6.4 |
| ready |
.parent() - jQuery 1.7.2 |
| ready |
.next() - jQuery 1.4.4 |
| ready |
.next() - jQuery 1.5 |
| ready |
.next() - jQuery 1.6.4 |
| ready |
.next() - jQuery 1.7.2 |
| ready |
.prev() - jQuery 1.4.4 |
| ready |
.prev() - jQuery 1.5 |
| ready |
.prev() - jQuery 1.6.4 |
| ready |
.prev() - jQuery 1.7.2 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.