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
Fix errors due to Mixed Content
<script src="https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.5/immutable.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mori/0.3.2/mori.min.js"></script>
window.range = function(x) {
var res = Array(x);
for(var i = 0; i < x; i++) {
res[i] = i;
}
return res;
}
window.plainList = range(1000);
window.immutableList = Immutable.List(plainList);
window.moriList = mori.vector.apply(null, plainList);
window.optimizedList = range(1000);
Ready to run.
Test | Ops/sec | |
---|---|---|
Plain JS |
| ready |
Immutable |
| ready |
mori |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.