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 (iPhone; CPU iPhone OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/134.0.6998.99 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 134
Operating system:
iOS 18.3.2
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Object Property
7882790.0 Ops/sec
Local Variable
8103683.5 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()