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
asdf
const profilesArray = new Array(1000).fill({
"id": "kedogzdhep8uxbezoe7nm4ya1r",
"create_at": 1684130335069,
"update_at": 1710862310709,
"delete_at": 0,
"username": "an.a.khokhlova",
"auth_data": "",
"auth_service": "",
"email": "an.a.khokhlova@tinkoff.ru",
"nickname": "an.a.khokhlova",
"first_name": "Anastasiya",
"last_name": "Khokhlova",
"phone": "",
"position": "",
"roles": "system_user",
"props": {
"customStatus": "{\"emoji\":\"desert_island\",\"text\":\"18-31.03 в отпуске. По ТЦР Новосибирск - к @n.manzhosova, по CnB - к @k.samolyuk\",\"duration\":\"date_and_time\",\"expires_at\":\"2024-03-31T16:30:00Z\"}"
},
"last_picture_update": 1702281767786,
"locale": "ru",
"timezone": {
"automaticTimezone": "Asia/Bangkok",
"manualTimezone": "",
"useAutomaticTimezone": "true"
},
"external_id": "602139",
"disable_welcome_email": false
})
const profiles = profilesArray.reduce((res, item) => {
res[item.id] = item;
return res;
}, {})
const userIds = new Set();
Ready to run.
Test | Ops/sec | |
---|---|---|
Object.keys |
| ready |
for..in |
| ready |
Object.entries |
| ready |
for |
| ready |
while |
| ready |
for of |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.