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 MyProto = Object.create({}, {
a0: { enumerable: true, writable: true, value: 1 },
b0: { enumerable: true, writable: true, value: '' },
a1: { enumerable: true, writable: true, value: 0 },
b1: { enumerable: true, writable: true, value: '' },
a2: { enumerable: true, writable: true, value: 0 },
b2: { enumerable: true, writable: true, value: '' },
a3: { enumerable: true, writable: true, value: 0 },
b3: { enumerable: true, writable: true, value: '' },
a4: { enumerable: true, writable: true, value: 0 },
b4: { enumerable: true, writable: true, value: '' },
a5: { enumerable: true, writable: true, value: 0 },
b5: { enumerable: true, writable: true, value: '' },
a6: { enumerable: true, writable: true, value: 0 },
b6: { enumerable: true, writable: true, value: '' },
a7: { enumerable: true, writable: true, value: 0 },
b7: { enumerable: true, writable: true, value: '' },
a8: { enumerable: true, writable: true, value: 0 },
b8: { enumerable: true, writable: true, value: '' },
})
class MyClass {
a0= 1;
b0= '';
a1= 0;
b1= '';
a2= 0;
b2= '';
a3= 0;
b3= '';
a4= 0;
b4= '';
a5= 0;
b5= '';
a6= 0;
b6= '';
a7= 0;
b7= '';
a8= 0;
b8= '';
}
let acc1 = 0
let acc2 = 0
Ready to run.
Test | Ops/sec | |
---|---|---|
proto |
| ready |
class |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.