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 foo={bar:{baz:null}};
function dlv(n,t,o,i,l){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)n=n?n[t[i]]:l;return n===l?o:n}
Ready to run.
Test | Ops/sec | |
---|---|---|
old spice |
| ready |
dlv (string) |
| ready |
dlv (array) |
| ready |
optional chaining (TypeScript) |
| ready |
optional chaining (Babel) |
| ready |
optional chaining (native) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.