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 test = {
1: {
identifier: 1
},
2: {
identifier: 2
},
3: {
identifier: 3
},
4: {
identifier: 4
},
5: {
identifier: 5
},
6: {
identifier: 6
},
7: {
identifier: 7
},
8: {
identifier: 8
},
9: {
identifier: 9
},
10: {
identifier: 10
},
11: {
identifier: 11
},
12: {
identifier: 12
},
13: {
identifier: 13
},
14: {
identifier: 14
},
15: {
identifier: 15
}
};
function sampleAccess(access) {
if (access(4)) return;
test[4];
if (access(20)) return;
test[20];
}
Ready to run.
Test | Ops/sec | |
---|---|---|
[] acessor === undefined |
| ready |
hasOwnProperty() |
| ready |
Object.hasOwn() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.