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://raw.github.com/garycourt/murmurhash-js/master/murmurhash3_gc.js">
</script>
<script src="https://raw.github.com/blueimp/JavaScript-MD5/master/md5.js">
</script>
var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=`[]\\;',./{}|:\"<>?",
alphabetLength = alphabet.length;
var testStrings = [],
i = 0,
j = 0,
testCount = 100,
length = 50;
for (i = 0; i < testCount; i++) {
var newStr = "";
for (j = 0; j < length; j++) {
newStr += alphabet[Math.floor((Math.random() * alphabetLength))];
}
testStrings[i] = newStr;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
MD5 |
| ready |
MurmurHash3 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.