{"ScriptPreparationCode":"var data = { ...Array.from(Array(10000).keys()) };","TestCases":[{"Name":"Object.fromEntries","Code":"Object.fromEntries(Object.entries(data).map((key, value) =\u003E [key, value]));","IsDeferred":false},{"Name":"Reduce (object assign)","Code":"Object.entries(data).reduce((object, [key, value]) =\u003E Object.assign(object, { [key]: value }), {})","IsDeferred":false},{"Name":"Reduce (creating temporary objects)","Code":"Object.entries(data).reduce((acc, [k, v]) =\u003E ({\r\n ...acc,\r\n [k]: v.toString()\r\n}), {});","IsDeferred":false},{"Name":"For in","Code":"const result = {};\r\nfor (const key in data) {\r\n result[key] = data[key]\r\n}","IsDeferred":false},{"Name":"Object.fromEntries with Generator","Code":"Object.fromEntries([\r\n ...(function* () {\r\n for (const key in data) {\r\n yield [key, data[key]];\r\n }\r\n })()\r\n]);","IsDeferred":false}]}