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="//ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
var findID = 33,
dataset = [{
"id": 37,
"hash": "c7c0352617e0e4547d4aeb80f7819519",
"name": "Dove",
"section": "General",
"qty": 1,
"rate": 20
}, {
"id": 36,
"hash": "00cbf9ea093a3dfb0867af1c2691ac42",
"name": "Masala Tea",
"section": "General",
"qty": 1,
"rate": 20
}, {
"id": 35,
"hash": "fb2fa00172305cc013cb984af0166199",
"name": "Composite Item",
"section": "General",
"qty": 1,
"rate": 69
}, {
"id": 34,
"hash": "fe6d4b066d6ae433bd8d33834f278763",
"name": "Coffee",
"section": "General",
"qty": 1,
"rate": 15
}, {
"id": 33,
"hash": "9b7ac80eea1bbd2f27059aea9909d4b4",
"name": "Masala Dosa",
"section": "General",
"qty": 1,
"rate": 45
}, {
"id": 32,
"hash": "cb26002fefafb5e147835ba6b4d1e870",
"name": "teststocktrack",
"section": "General",
"qty": 1,
"rate": 99
}];
Ready to run.
Test | Ops/sec | |
---|---|---|
angular forEach |
| ready |
lodash findIndex |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.