structuredClose(myObject) vs JSON.parse(JSON.stringify(myObject)) (version: 0)
Both structuredClone(myObject) and JSON.parse(JSON.stringify(myObject)) can be used to create deep copies of JavaScript objects, but which is faster for a decent sized object?
Comparing performance of: structuredClone(myObject) vs JSON.parse(JSON.stringify(myObject))
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