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 look back at lodash and underscore from 5 & 3 years ago compared to their latest releases.
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/0.1.0/underscore.js"></script>
<script>
var underscore_010 = _;
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore.js"></script>
<script>
var underscore_133 = _.noConflict();
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore.js"></script>
<script>
var underscore_182 = _.noConflict();
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/0.1.0/lodash.js"></script>
<script>
var lodash_010 = _.noConflict();
</script>
<script src="https://jspm.io/system@0.14.js"></script>
<script>
System.import('npm:lodash@3.3.1/array/uniq').then(function(uniq) {
lodash_331 = { 'uniq': uniq };
document.getElementById('run').style.display = '';
});
document.getElementById('run').style.display = 'none';
</script>
var _ = underscore_182,
array = _.shuffle(_.range(500).concat(_.range(500)));
Ready to run.
Test | Ops/sec | |
---|---|---|
underscore v0.1.0 |
| ready |
underscore v1.3.3 |
| ready |
underscore v1.8.2 |
| ready |
lodash v0.1.0 |
| ready |
lodash v3.3.1 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.