Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Object Property x Local Variable Accessing 1
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 12; Mobile; rv:149.0) Gecko/149.0 Firefox/149.0
Browser:
Firefox Mobile 149
Operating system:
Android
Device Platform:
Mobile
Date tested:
one month ago
Test name
Executions per second
Object Property
609597.8 Ops/sec
Local Variable
617663.6 Ops/sec
Tests:
Object Property
class Bar { constructor() { this.prop = { foo: function() { } } } test() { if(this.prop.foo) { this.prop.foo() } } } const b = new Bar() b.test()
Local Variable
class Bar { constructor() { this.prop = { foo: function() { } } } test() { const foo = this.prop.foo if(foo) { foo() } } } const b = new Bar() b.test()