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; rv:123.0) Gecko/20100101 Firefox/123.0
Browser:
Firefox 123
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Dot Notation
1564.1M/s
Bracket Notation
1563.8M/s
Destructuring Notation
880.8M/s
View exact numbers
Test name
Executions per second
✓
Dot Notation
1,564,106,880 Ops/sec
Bracket Notation
1,563,790,976 Ops/sec
Destructuring Notation
880,797,248 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']