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://cdn.jsdelivr.net/gh/emn178/js-md5/build/md5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/md5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/spark-md5/3.0.2/spark-md5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hash-wasm"></script>
var upperCase = Array(26).fill(0).map((_v, i) => String.fromCharCode(65 + i))
var lowerCase = Array(26).fill(0).map((_v, i) => String.fromCharCode(97 + i))
var digits = Array(10).fill(0).map((_v, i) => i)
var sampleSize = [...upperCase, ...lowerCase, ...digits]
function getRandomIndex() {
return Math.floor(Math.random() * sampleSize.length);
}
var str = Array(10000000).fill(0).map(() => sampleSize[getRandomIndex()]).join('')
Ready to run.
Test | Ops/sec | |
---|---|---|
js-md5 |
| ready |
CryptoJS |
| ready |
SparkMD5 |
| ready |
Hash-WASM |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.