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
Compare for usge in if-clauses.
const noProto = { a: 'a', b: 1};
const noProtoLarger = {
a: 'a',
b: 1,
c: 'hello',
d: false,
e: 'no brainer',
f: {g: 'go'}
};
function CreateProto() {
this.a = 'a';
}
CreateProto.prototype.b = 1;
const p = new CreateProto();
Ready to run.
Test | Ops/sec | |
---|---|---|
hasOwnProperty a noProto |
| ready |
hasOwnProperty a noProtoLarger |
| ready |
hasOwnProperty a proto |
| ready |
hasOwnProperty b proto |
| ready |
hasOwnProperty b noProto |
| ready |
hasOwnProperty b noProtoLarger |
| ready |
in b noProto |
| ready |
in b noProtoLarger |
| ready |
in b proto |
| ready |
in a proto |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.