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
Demoing Lo-Dash (edge) support for lazy evaluation (contributed by @filip_zawada).
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore.js"></script>
<script src="//cdn.rawgit.com/lodash/lodash/ad10a1eba55e9530a09827549f56d2886a900b7f/lodash.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/immutable/3.4.1/immutable.min.js"></script>
<script>var lodash = _.noConflict();</script>
var arr = _.range(10000),
limit = 100;
var seq = Immutable.Seq(arr)
var square = function(v) { return v * v; },
odd = function(v) { return !!(v % 2); };
Ready to run.
Test | Ops/sec | |
---|---|---|
Native |
| ready |
Underscore |
| ready |
Lo-Dash |
| ready |
native brute |
| ready |
immutable |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.