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
I recently saw this this webcast about using clean objects instead of normal ones for things like hashmaps. Time to test it up and see if creation and access is actually any faster with these objects.
I've also included building objects explicitly because the result is...interesting.
var normal = {};
var clean = Object.create(null, {});
normal.val = true;
clean.val = true;Ready to run.
| Test | Ops/sec | |
|---|---|---|
| Build Normal Object | | ready |
| Build Clean Object | | ready |
| Explicitly Build Normal Object | | ready |
| Access Normal Object | | ready |
| Access Clean Object | | ready |
| Add to Normal Object | | ready |
| Add to Clean Object | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.