Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Object Property Access Notation: Destructuring vs. Dot. vs. Bracket
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Browser:
Firefox 124
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
Destructuring Notation
422639072.0 Ops/sec
Dot Notation
836241856.0 Ops/sec
Bracket Notation
842970112.0 Ops/sec
Script Preparation code:
var globalData = { data: { property: "value", }, };
Tests:
Destructuring Notation
var { data } = globalData;
Dot Notation
var dot = globalData.data;
Bracket Notation
var bracket = globalData['data']