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
Go 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
Object property lookup
38.4M/s
end of scope/prototype
23.7M/s
View exact numbers
Test name
Executions per second
✓
Object property lookup
38,395,224 Ops/sec
end of scope/prototype
23,714,406 Ops/sec
Related benchmarks
undefined vs. typeof vs. in vs. hasOwnProperty vs Object.prototype.hasOwnProperty
Object.prototype.hasOwnProperty vs obj.hasOwnProperty vs Object.hasOwn
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?