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
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
<script>
var underscore = _.noConflict();
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.2.1/lodash.min.js"></script>
<script>
var lodash = _.noConflict();
</script>
var obj1 = {
properties: {
selectionName: null,
price: {
format: 'fractional',
odds: null
},
status: 'A',
display: {
displayed: 'Y',
order: null
},
selectionScore: {
home: null,
away: null
},
band: {
lower: 5,
upper: 10
},
channels: 'ZWIP'
},
result: null
};
var obj2 = {
properties: {
selectionName: null,
price: {
format: 'fractional',
odds: null
},
status: 'A',
display: {
displayed: 'Y',
order: null
},
selectionScore: {
home: null,
away: null
},
band: {
lower: null,
upper: null
},
channels: 'ZWIP'
},
result: null
};
lodash = window.lodash;
underscore = window.underscore
Ready to run.
Test | Ops/sec | |
---|---|---|
lodash |
| ready |
underscore |
| ready |
JSON.stringify() |
| ready |
Array LoDash |
| ready |
Array underscore |
| ready |
JSON Array |
| ready |
Intersection Array |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.