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
A better version of the test. http://jsperf.com/clojurescript-mori-vs-underscore-vs-lodash-vs-lazyjs didn't actually do the same thing in every test.
Simple collections manipulation using basic functional programming techniques:
a) make a list of integers from 0 to 999999
b) multiply them by 100
c) take last 100000
d) take first 10000
e) filter those from d that divide by 7
f) filter those from d that divide by 11
g) take the intersection of numbers from both sets e and f
h) count elements of g
Please add more libraries and native code if you can. :)
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.3/underscore-min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sugar/1.3.7/sugar.min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.1.0/lodash.min.js"></script>
<script>var lodash = _.noConflict();</script>
<script src="https://rawgithub.com/fdecampredon/immuable/master/benchmark/mori.js" ></script>
<script src='//rawgithub.com/dtao/lazy.js/master/lazy.js'></script>
<script>
window.m = mori;
window.lo = lodash;
window.L = Lazy;
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Mori |
| ready |
Underscore |
| ready |
Lodash |
| ready |
Lazyjs |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.