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
Compare the performance of the native browser function to Lodash.
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js'></script>
const smallDict = { a: 1, b: 2, c: 3 };
const largeDict = Object.fromEntries(
Array.from({ length: 100 }, (_, i) =>
[i, { value: i, isEven: i % 2 === 0 }]))
Ready to run.
Test | Ops/sec | |
---|---|---|
[Native] Object.entries [Small] |
| ready |
[Lodash] _.toPairs [Small] |
| ready |
[Native] Object.entries [Large] |
| ready |
[Lodash] _.toPairs [Large] |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.