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/chance/1.1.6/chance.min.js"></script>
const randomStrings = chance.unique(chance.string.bind(chance, {length: 10, casing: 'upper', alpha: true, numeric: true }), 250);
const sourceData = {};
randomStrings.forEach((str, index) => {
sourceData[str] = {
id: str,
index,
};
});
const arrOfNumbers = [1,2,3];
Ready to run.
Test | Ops/sec | |
---|---|---|
.entries + foreach |
| ready |
.keys + loop |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.