Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
destructuring X undefined X null X delete X new reference
(version: 0)
Comparing performance of:
Destructuring vs Undefined vs Null vs Delete vs New reference
Created:
5 years ago
by:
Guest
Jump to the latest result
Tests:
Destructuring
const user = { email: '123@email.com', password: 'AA&Â&A*&AA' }; const {password, toBeReturned} = user;
Undefined
const user = { email: '123@email.com', password: 'AA&Â&A*&AA' }; user.password = undefined;
Null
const user = { email: '123@email.com', password: 'AA&Â&A*&AA' }; user.password = null;
Delete
const user = { email: '123@email.com', password: 'AA&Â&A*&AA' }; delete user.password;
New reference
const user = { email: '123@email.com', password: 'AA&Â&A*&AA' }; const toBeReturned = {email: user.email};
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
Destructuring
Undefined
Null
Delete
New reference
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Assignment of value vs Destructuring an object
Find deep with Assignment of value vs Destructuring an object
Comparing destructuring assignment with optional chaining v3
Passing as param vs destructuring internally
Assignment of value vs Destructuring an object (direct assign insted of variable )
Comments
Confirm delete:
Do you really want to delete benchmark?