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
const params = {
deductionTypes: ['type1', 'type2'],
reasons: ['reason1', 'reason2'],
};
const createMockData = (numRows = 1000, warningsPerRow = 5) => {
return Array.from({ length: numRows }, (_, i) => ({
id: i,
otherData: `row${i}`,
warnings: Array.from({ length: warningsPerRow }, (_, j) => ({
deduction_type: j % 2 === 0 ? 'type1' : 'typeX',
reason: j % 3 === 0 ? 'reason1' : 'reasonX',
warningDetail: `warn${j}`,
})),
}));
};
const data = createMockData();
Ready to run.
Test | Ops/sec | |
---|---|---|
AA |
| ready |
BB |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.