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
Go 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
just reassign
150.6M/s
destructure and reassign
79.4M/s
View exact numbers
Test name
Executions per second
✓
just reassign
150,571,024 Ops/sec
destructure and reassign
79,413,776 Ops/sec
Related benchmarks
Destructure vs Traditional
Object.create vs {}
Comments
Confirm delete:
Do you really want to delete benchmark?