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
proof of concept to not use jQuery $.each inside of other jQuery function for speed sake!
<script src="http://code.jquery.com/jquery-git.js"></script>
<script> git = jQuery.noConflict(); </script>
<script src="http://msherov.ayi.test.areyouinterested.com/js/jquery-10733.js"></script>
<script> patched = jQuery.noConflict(); </script>
<div id="widthdiv" style="width:10px;height:10px;margin:6px;border:6px;padding:3px;"></div>
<script>
var input = {
gitdiv: git( "#widthdiv" ),
patcheddiv: patched( "#widthdiv")
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
$.each |
| ready |
for loop |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.