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 userRoles = [13, 53, 3];
const GdAdminAndSalesRoles = {
ROLE_ADMIN: 3,
ROLE_CONTENT_ADMIN: 10,
ROLE_DATA_ANALYST: 13,
ROLE_ENGINEER: 20,
ROLE_ENGINEER_ADMIN: 21,
ROLE_SALES: 36,
ROLE_SALES_INDEED: 52,
ROLE_SENIOR_ADMIN: 39,
ROLE_ACCOUNT_MANAGER: 1,
ROLE_ACCOUNT_MANAGER_INDEED: 53,
};
const GdAdminAndSalesRolesArray = Object.values(GdAdminAndSalesRoles)
Ready to run.
Test | Ops/sec | |
---|---|---|
Casting to array each time |
| ready |
Using cached array |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.