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 objectWithAllNullish = {
'A': null,
'B': undefined,
'C': null,
'D': undefined,
'E': null,
'F': undefined,
'G': null,
'H': undefined,
'I': null,
'J': undefined,
'K': null,
'L': undefined,
'M': null,
'N': undefined,
'O': null,
'P': undefined,
'Q': null,
'R': undefined,
'S': null,
'T': undefined,
'U': null,
'V': undefined,
'W': null,
'X': undefined,
'Y': null,
'Z': undefined,
};
const objectWithEarlyNonNullish = {
'A': 'not null',
'B': undefined,
'C': null,
'D': undefined,
'E': null,
'F': undefined,
'G': null,
'H': undefined,
'I': null,
'J': undefined,
'K': null,
'L': undefined,
'M': null,
'N': undefined,
'O': null,
'P': undefined,
'Q': null,
'R': undefined,
'S': null,
'T': undefined,
'U': null,
'V': undefined,
'W': null,
'X': undefined,
'Y': null,
'Z': undefined,
};
const objectWithLateNonNullish = {
'A': null,
'B': undefined,
'C': null,
'D': undefined,
'E': null,
'F': undefined,
'G': null,
'H': undefined,
'I': null,
'J': undefined,
'K': null,
'L': undefined,
'M': null,
'N': undefined,
'O': null,
'P': undefined,
'Q': null,
'R': undefined,
'S': null,
'T': undefined,
'U': null,
'V': undefined,
'W': null,
'X': undefined,
'Y': null,
'Z': 'not undefined',
};Ready to run.
| Test | Ops/sec | |
|---|---|---|
| Every | | ready |
| Some | | ready |
| Simpler Callback Every | | ready |
| Simpler Callback Some | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.