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
Comparing when the entire list is actually needed. While laziness is a virtue, it's also instructive to compare what happens when it's not a part of the equation.
(Also removing wu, which is failing for some reason.)
<script src="//cdn.rawgit.com/jlongster/transducers.js/2f1edb1f15c515b0c9c98db955c1abc1442d59e4/dist/transducers.js"></script>
<script src="//cdn.rawgit.com/dtao/lazy.js/7a9b0210d97168ff48c5d2b4ce4d12194ba7fbec/lazy.js"></script>
<script src="//cdn.rawgit.com/CrossEye/ramda/v0.5.0/ramda.js"></script>
<script src="//cdn.rawgit.com/lodash/lodash/84ffec5f8667041abdc6301fd713a83e6091fae0/dist/lodash.js"></script>
<script>var lodash = _.noConflict();</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore.js"></script>
var arr = _.range(10000),
limit = 9999;
var odd = function(v) { return !!(v % 2); },
square = function(v) { return v * v; };
Ready to run.
Test | Ops/sec | |
---|---|---|
Native |
| ready |
Underscore |
| ready |
Lazy.js |
| ready |
Lo-Dash (lazy) |
| ready |
Lo-Dash (normal) |
| ready |
Ramda |
| ready |
Transducers |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.