{"ScriptPreparationCode":"const entries = Array.from({\r\n length: 10_000\r\n }, (_, i) =\u003E i)\r\n .map(i =\u003E [\r\n \u0060key${i}\u0060,\r\n {\r\n a: Math.random() * 10000,\r\n b: Math.random().toString(36).slice(2)\r\n }\r\n ])\r\n\r\n\r\nvar obj = Object.fromEntries(entries);\r\nvar map = new Map(entries);","TestCases":[{"Name":"Object shallow clone","Code":"const banana = {...obj}","IsDeferred":false},{"Name":"Map shallow clone","Code":"const coconut = new Map(map)","IsDeferred":false},{"Name":"Object structuredClone","Code":"const pineapple = structuredClone(obj)","IsDeferred":false},{"Name":"Map structuredClone","Code":"const mango = structuredClone(map)","IsDeferred":false},{"Name":"Object JSON.stringify copy","Code":"const papaya = JSON.parse(JSON.stringify(obj))","IsDeferred":false}]}