Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
hasown vs undefined
measures hasown vs undefined speed
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Browser:
Chrome 126
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
hasown existing
0.0 Ops/sec
hasown missing
0.0 Ops/sec
undefined existing
14042469.0 Ops/sec
undefined missing
14524279.0 Ops/sec
Tests:
hasown existing
const data = { foo: 3, }; let res = Object.hasOwn(data, foo);
hasown missing
const data = { foo: 3, }; let res = Object.hasOwn(data, bar);
undefined existing
const data = { foo: 3, }; let res = data.foo === undefined;
undefined missing
const data = { foo: 3, }; let res = data.bar === undefined;