Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser:
Chrome 137
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Bracket Notation
133.0M/s
Destructuring Notation
126.2M/s
Dot Notation
122.1M/s
View exact numbers
Test name
Executions per second
✓
Bracket Notation
133,046,528 Ops/sec
Destructuring Notation
126,157,088 Ops/sec
Dot Notation
122,124,368 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']