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
Based on StackOverflow question:
http://stackoverflow.com/questions/25676026/group-array-with-sub-array/27596147#27596147
<script src="http://alasql.org/console/alasql.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
var data = [{
'userId': 1,
'userName': 'bob',
'category': 'shoes',
'count': 2
}, {
'userId': 1,
'userName': 'bob',
'category': 'rocks',
'count': 4
}, {
'userId': 1,
'userName': 'bob',
'category': 'bags',
'count': 3
}, {
'userId': 2,
'userName': 'sue',
'category': 'shoes',
'count': 1
}, {
'userId': 2,
'userName': 'sue',
'category': 'rocks',
'count': 7
}, {
'userId': 2,
'userName': 'sue',
'category': 'bags',
'count': 4
}, ];
Ready to run.
Test | Ops/sec | |
---|---|---|
Lodash |
| ready |
Alasql |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.