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 data = {
success: false,
error: 'Validation error: Required at "username"',
reason: "Failed validation",
details: {
validationIssues: [
{
code: "invalid_type",
expected: "string",
received: "undefined",
path: ["username"],
message: "Required",
},
],
},
};
var result;
Ready to run.
Test | Ops/sec | |
---|---|---|
Reflect.has(obj, "property") |
| ready |
"property" in obj ("foo" in { foo: "bar" }) |
| ready |
obj.hasOwnProperty("property") |
| ready |
Object.hasOwn(obj, "property) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.