Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Delete properties vs Desctructuring and assign
(version: 0)
Comparing performance of:
Delete vs Desctructuring and assign
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var obj = { prop1: 1, prop2: 2, prop3: 3, prop4: 4 }
Tests:
Delete
delete obj.prop1; delete obj.prop2;
Desctructuring and assign
const {prop1,prop2, ...rest} = obj; obj = rest;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Delete
Desctructuring and assign
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:
Delete vs destructure for objects
Delete vs destructure for cloned objects
Delete vs destructure for objects v2 2
Delete vs structuring for objects and recreate obj
Comments
Confirm delete:
Do you really want to delete benchmark?