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
let i;
let entitiesArray = [];
let keysToDelete = [];
let entities;
for (i = 0; i < 10000; i++) {
if(i <= 1000) {
keysToDelete[i] = i;
}
entitiesArray[i] = Math.random();
}
entities = Object.assign({}, entitiesArray)
i = 0;
entities = [];
keysToDelete = [];
entities = {};
Ready to run.
Test | Ops/sec | |
---|---|---|
Filter foreach |
| ready |
clone and delete operator |
| ready |
for in loop |
| ready |
for loop |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.