{"ScriptPreparationCode":"var ENTRIES = 10000;\r\nvar data = Array.from(Array(ENTRIES).keys()).map(key =\u003E ({id: key, someProp: key \u002B 1}))\r\nvar createObject = (value) =\u003E ({\r\n ...value,\r\n id: value.id,\r\n});","TestCases":[{"Name":"Object.fromEntries (with transform data)","Code":"Object.fromEntries(data.map((key, value) =\u003E {\r\n const newValue = createObject(value);\r\n return [key, newValue];\r\n}));","IsDeferred":false},{"Name":"Reduce (reuse object)","Code":"data.reduce((acc, current) =\u003E {\r\n const newObj = createObject(current);\r\n acc[newObj.id] = newObj;\r\n return acc;\r\n}, {});","IsDeferred":false},{"Name":"Reduce (creating temporary objects)","Code":"data.reduce((acc, current) =\u003E {\r\n const newObj = createObject(current);\r\n return { ...acc, [newObj.id]: newObj }\r\n}, {});","IsDeferred":false}]}