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 a = {
"_id": "665dca588b2f662f07d327d6",
"index": 4,
"guid": "c0798c76-d4e9-494e-9b59-a22f980313ff",
"isActive": true,
"balance": "$3,732.87",
"picture": "http://placehold.it/32x32",
"age": 36,
"eyeColor": "green",
"name": "Bridget Burks",
"gender": "female",
"company": "AQUACINE",
"email": "bridgetburks@aquacine.com",
"phone": "+1 (803) 534-2241",
"address": "639 Oliver Street, Finderne, Texas, 7987",
"about": "Mi ",
"registered": "2021-06-02T10:40:34 -02:00",
"latitude": 45.290067,
"longitude": 121.755408,
"tags": [
],
"friends": [
],
"greeting": "Hello, Bridget Burks! You have 10 unread messages.",
"favoriteFruit": "banana"
};
function isEmptyObject(object ) {
for (const key in object) {
if (Object.prototype.hasOwnProperty.call(object, key)) {
return false;
}
}
return true;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Object.keys |
| ready |
for .. in |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.