{"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 (reuse object)","Code":"Object.entries(data).reduce((acc, [k, v]) =\u003E {\r\n acc[k] = v.toString();\r\n return acc;\r\n}, {});","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":"Map (reduce)","Code":"Object.entries(data).reduce((acc, [k, v]) =\u003E {\r\n acc.set(k, v.toString())\r\n return acc;\r\n}, new Map());","IsDeferred":false},{"Name":"Map (constructor)","Code":"new Map(Object.entries(data))","IsDeferred":false}]}