array of object destruc vs JSON.parse + JSON.stringify (version: 0)
Checking how does 1 level of objects destruct inside 1 array compared to the JSON.parse(JSON.stringify(data)) hack commonly used to deeply nested objects
Comparing performance of: 1 level destruct vs Json parse
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
1 level destruct
Json parse
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36