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
Various approaches that are relevant to designing a library API where you want to allow the consumer to specify custom keys of objects to operate on
let object = { a: 42, b: "foo", c: true, d: ["bar"] };Ready to run.
| Test | Ops/sec | |
|---|---|---|
| static key | | ready |
| dynamic-static key | | ready |
| dynamic (but fixed) key | | ready |
| dynamic (and changing) key | | ready |
| dynamic with callback (fixed) | | ready |
| dynamic with callback (changing) | | ready |
| extraction callback (static) | | ready |
| extraction callback (dynamic, but fixed) | | ready |
| extraction callback (dynamic, changing) | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.