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 (iPhone; CPU iPhone OS 18_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0.1 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 18
Operating system:
iOS 18.0.1
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Bracket Notation
30.3M/s
Dot Notation
30.2M/s
Destructuring Notation
30.1M/s
View exact numbers
Test name
Executions per second
✓
Bracket Notation
30,294,136 Ops/sec
Dot Notation
30,172,442 Ops/sec
Destructuring Notation
30,103,876 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']