Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
obj test
(version: 1)
Comparing performance of:
destructure and reassign vs just reassign
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
const obj = { hello: 'world', foo: 'bar' }
Tests:
destructure and reassign
const other = {...obj, foo: 'not bar' };
just reassign
obj.foo = 'not bar'
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
destructure and reassign
just reassign
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser/OS:
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
destructure and reassign
79413776.0 Ops/sec
just reassign
150571024.0 Ops/sec
Related benchmarks:
test test
overwrite string vs null vs const two
Destructure vs Traditional
delete vs deconstruct
const vs direct usages
Object.create vs {}
testesting
foo vs bar
Delete vs destructure object vs undefined vs null
Comments
Confirm delete:
Do you really want to delete benchmark?