Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Destructure array vs Array index
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 YaBrowser/25.10.0.0 Safari/537.36
Browser:
Yandex Browser 25
Operating system:
Windows
Device Platform:
Desktop
Date tested:
4 months ago
Test name
Executions per second
Destructure array
45199808.0 Ops/sec
Array index
62135588.0 Ops/sec
Tests:
Destructure array
const things = [{name: 'Alan', swearing: 'Mid'}, {name: 'Jason', swearing: 'High'}, {name: 'Stuart', swearing: 'Low'}] const [first] = things
Array index
const things = [{name: 'Alan', swearing: 'Mid'}, {name: 'Jason', swearing: 'High'}, {name: 'Stuart', swearing: 'Low'}] const first = things[0]