{"ScriptPreparationCode":"var data = Array.from(Array(10000).keys()).map(i =\u003E ({id: i, value: \u0060val_${i}\u0060}));","TestCases":[{"Name":"Object.fromEntries","Code":"Object.fromEntries(data.map(obj =\u003E [obj.id, obj]));","IsDeferred":false},{"Name":"Reduce (reuse object)","Code":"data.reduce((acc, obj) =\u003E {\r\n acc[obj.id] = obj;\r\n return acc;\r\n}, {});","IsDeferred":false},{"Name":"Reduce (creating temporary objects)","Code":"data.reduce((acc, obj) =\u003E ({\r\n ...acc,\r\n [obj.id]: obj\r\n}), {});","IsDeferred":false},{"Name":"for of","Code":"const acc = {}\r\nfor (const obj of data) {\r\n acc[obj.id] = obj\r\n}","IsDeferred":false},{"Name":"for each","Code":"const acc = {}\r\ndata.forEach((obj) =\u003E {\r\n acc[obj.id] = obj\r\n})","IsDeferred":false}]}