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
Lo-Dash vs Underscore.
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
<script>
var us = _.noConflict();
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.2.1/lodash.min.js"></script>
<script>
var ld = _.noConflict();
</script>
var ld = window.ld;
var us = window.us;
var r, array = [];
for (var i = 0; i < 20; i++) {
array[i] = i;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Underscore#forEach |
| ready |
Lo-Dash#forEach |
| ready |
Native#forEach |
| ready |
Lo-Dash#forEach with bind |
| ready |
Native#for |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.