Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Nested delete vs assign to undefined
(version: 0)
Comparing performance of:
delete obj.nested; vs obj.nested = undefined;
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
const obj = {}; for (let i = 0; i < 100; i++) { obj.nested[`prop${i}`] = Math.random(); }
Tests:
delete obj.nested;
delete obj.nested;
obj.nested = undefined;
obj.nested = undefined;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
delete obj.nested;
obj.nested = undefined;
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!
Comments
Confirm delete:
Do you really want to delete benchmark?