Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Test assign vs deconstruct
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Browser:
Firefox 132
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Assign
1307479808.0 Ops/sec
Deconstruct + rename
627668800.0 Ops/sec
Deconstruct simple
627537024.0 Ops/sec
Script Preparation code:
const a = {id: 12, age: 453, name: "toto", time: new Date()};
Tests:
Assign
const userId = a.id;
Deconstruct + rename
const {id: userId} = a;
Deconstruct simple
const {id} = a;