{"ScriptPreparationCode":"const numSiblings = 500;\r\nconst depth = 3;\r\n\r\nstate = {\r\n data: {\r\n data1: {\r\n data2: \u0027test\u0027,\r\n siblings: Array.from({\r\n length: numSiblings\r\n }).map(() =\u003E ({\r\n id: crypto.randomUUID()\r\n })),\r\n children: Array.from({\r\n length: depth\r\n }).map(() =\u003E ({\r\n id: crypto.randomUUID(),\r\n data: {\r\n data1: {\r\n data2: \u0027test\u0027,\r\n siblings: Array.from({\r\n length: numSiblings\r\n }).map(() =\u003E ({\r\n id: crypto.randomUUID()\r\n })),\r\n children: Array.from({\r\n length: depth\r\n }).map(() =\u003E ({\r\n id: crypto.randomUUID(),\r\n data: {\r\n data1: {\r\n data2: \u0027test\u0027,\r\n siblings: Array.from({\r\n length: numSiblings\r\n }).map(() =\u003E ({\r\n id: crypto.randomUUID()\r\n })),\r\n children: Array.from({\r\n length: depth\r\n }).map(() =\u003E ({\r\n id: crypto.randomUUID(),\r\n data: {\r\n data1: {\r\n data2: \u0027test\u0027,\r\n siblings: Array.from({\r\n length: numSiblings\r\n }).map(() =\u003E ({\r\n id: crypto.randomUUID()\r\n })),\r\n },\r\n },\r\n })),\r\n },\r\n },\r\n })),\r\n },\r\n },\r\n })),\r\n },\r\n data3: Array.from({\r\n length: 1000\r\n }).map(() =\u003E ({})),\r\n },\r\n};","TestCases":[{"Name":"produce","Code":"const result = immerProduce(state, draft =\u003E {\r\n draft.data.data1.data2 = \u0027updated\u0027;\r\n for (let i; i \u003C 500; i\u002B\u002B) {\r\n draft.data.data1.siblilngs[i] = { id: uuidv4() };\r\n }\r\n})","IsDeferred":false},{"Name":"structuredClone","Code":"const result = structuredClone(state);\r\nresult.data.data1.data2 = \u0027updated\u0027;\r\nfor (let i; i \u003C 500; i\u002B\u002B) {\r\n result.data.data1.siblilngs[i] = { id: uuidv4() };\r\n}","IsDeferred":false}]}