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
Why oh why is jQuery 1.5b treating us this way. We have been so loving to it.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>
var $14 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-1.5b1.js"></script>
<script>
var $15 = jQuery;
</script>
<div id="jq144" style="display:none;"></div>
<div id="jq150" style="display:none;" ></div>
<script>
var thismany = 500,
$divs = $(false),
containers = ["jq144", "jq150"];
while (thismany--) {
$divs.push($('<div/>')[0]);
}
for (var i = 0; i < containers.length; i++) {
$("#" + containers[i]).append($divs.clone());
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery 1.4.4 clone - false |
| ready |
jQuery 1.5b clone - false |
| ready |
jQuery 1.4.4 clone - true |
| ready |
jQuery 1.5b clone - true |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.