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 defaultMin = 0;
const thresholdsData = [
{ value: 55, color: 'red', name: 'bad' },
{ value: 20, color: 'yellow', name: 'warning' },
{ value: 10, color: 'light-green', name: 'good' },
{ value: 5, color: 'green', name: 'very very good' },
];
const testcases = [
{ value: 56, expected: thresholdsData[0], message: 'the first' },
{ value: 22, expected: thresholdsData[1], message: 'the second' },
{ value: 19, expected: thresholdsData[2], message: 'the third' },
{ value: 5, expected: thresholdsData[3], message: 'the fourth' },
{ value: 1, expected: undefined, message: 'none of the' },
];
Ready to run.
Test | Ops/sec | |
---|---|---|
Current |
| ready |
Proposed |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.