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
// Setup
const iterations = 1000000;
// Create a deep prototype chain
const proto1 = { deepProp: 1 };
const proto2 = Object.create(proto1);
proto2.midProp = 2;
const obj = Object.create(proto2);
obj.ownProp = 3;
Ready to run.
Test | Ops/sec | |
---|---|---|
// Test accessing own property with dot notation |
| ready |
// Test accessing own property with bracket notation |
| ready |
// Test accessing mid-level prototype property with dot notation |
| ready |
// Test accessing mid-level prototype property with bracket notation |
| ready |
// Test accessing deep prototype property with dot notation |
| ready |
// Test accessing deep prototype property with bracket notation |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.