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://cdnjs.cloudflare.com/ajax/libs/immutable/3.4.1/immutable.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mori/0.2.9/mori.js"></script>
var imm_map = Immutable.fromJS({a:{b:{c:{d:{e:'test'}}}}}),
imm_map2 = imm_map.updateIn(['a', 'b', 'c', 'd', 'e'], just('test2')),
mori_map = mori.js_to_clj({a:{b:{c:{d:{e:'test'}}}}}),
mori_map2 = mori.update_in(mori_map, ['a', 'b', 'c', 'd', 'e'], just('test2'));
function just(v) {
return function() {
return v;
};
}
Ready to run.
Test | Ops/sec | |
---|---|---|
mori deep set |
| ready |
Immutable deep set |
| ready |
mori get |
| ready |
Immutable get |
| ready |
mori equals (false) |
| ready |
Immutable is (false) |
| ready |
mori equals (true) |
| ready |
Immutable is (false) |
| ready |
Immutable deep set 2 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.