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="http://underscorejs.org/underscore-min.js"></script>
var teams = [
{
players: {
f9e8aj: 9998,
fkemq0: 2010
},
_id: 'yatta'
},
{
players: {
adfg: 2934,
fkevdvdmq0: 935
},
_id: 'yatta'
},
{
players: {
f9ertfse8aj: 1212,
fkemsdfewq0: 8243
},
_id: 'yatta'
},
{
players: {
f9wefe8aj: 5593,
fkefsaqqmq0: 4034
},
_id: 'yatta'
}
];
Ready to run.
Test | Ops/sec | |
---|---|---|
Object reduce |
| ready |
Object reduce to keys array |
| ready |
Array pluck and keys flatten |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.