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
Small chunk size: 16 bytes.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="https://rawgithub.com/alexweber/jquery.sha256/master/jquery.sha256.js" type="text/javascript"></script>
<script src="http://www.bichlmeier.info/sha256.js"></script>
<script src="http://www.webtoolkit.info/djs/webtoolkit.sha256.js"></script>
<script src="http://www.movable-type.co.uk/scripts/utf8.js"></script>
<script src="http://www.movable-type.co.uk/scripts/sha256.js"></script>
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/sha256.js"></script>
<script src="http://crypto.stanford.edu/sjcl/sjcl.js"></script>
<script src="http://vibornoff.com/asmcrypto.js"></script>
<script>
var digest;
var sjcl_sha256 = new window.sjcl.hash.sha256();
</script>
var input = "0123456789abcdef";
input = utf8Encode(input);
var buffer = new Uint8Array(input.length);
for (var i=0; i<input.length; i++) buffer[i] = input.charCodeAt(i);
function utf8Encode(str) {
return window.unescape(window.encodeURIComponent(str));
}
Ready to run.
Test | Ops/sec | |
---|---|---|
bichlmeier |
| ready |
webtoolkit |
| ready |
movable-type.co.uk |
| ready |
Weber |
| ready |
sjcl |
| ready |
CryptoJS |
| ready |
Asm.js (string) |
| ready |
Asm.js (buffer) |
| ready |
sjcl.hash |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.