Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
identifier at end of scope chain and end of prototype chain vs object lookup
(version: 1)
Comparing performance of:
end of scope/prototype vs Object property lookup
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let obj = {a:3}
Tests:
end of scope/prototype
hasOwnProperty.call(obj, 'a') hasOwnProperty.call(obj, 'b')
Object property lookup
[].hasOwnProperty.call(obj, 'a'); [].hasOwnProperty.call(obj, 'b')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
end of scope/prototype
Object property lookup
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser/OS:
Chrome 135 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
end of scope/prototype
23714406.0 Ops/sec
Object property lookup
38395224.0 Ops/sec
Related benchmarks:
undefined vs. hasOwnProperty2
undefined vs. typeof vs. in vs. hasOwnProperty vs Object.prototype.hasOwnProperty
undefined vs. typeof vs. in vs. hasOwnProperty.call()
undefined vs. typeof vs. in vs. Object.prototype.hasOwnProperty
undefined vs. typeof vs. in vs. hasOwnProperty vs. Object.prototype.hasOwnProperty.call
Object.prototype.hasOwnProperty vs obj.hasOwnProperty vs Object.hasOwn
hasOwnProperty vs hasOwnProperty .call
in vs. obj.hasOwnProperty vs prototype.hasOwnProperty.call
in vs Object.hasOwn vs Object.prototype.hasOwnProperty
Comments
Confirm delete:
Do you really want to delete benchmark?