{"ScriptPreparationCode":"var ids = Array.from(Array(10000).keys())\r\n\r\nvar data = ids.map(item =\u003E ({ id: item, random: Math.random() }))","TestCases":[{"Name":"Object.fromEntries","Code":"// Create the dictionary\r\nconst dictionary = Object.fromEntries(\r\n data.map((item) =\u003E [\r\n // Key\r\n item.id,\r\n // Item\r\n item,\r\n ])\r\n);\r\n\r\n// Utilize it, to test the performance of the dictionary itself as well.\r\nids.map((id) =\u003E dictionary[id]);","IsDeferred":false},{"Name":"Map","Code":"// Create the dictionary\r\nconst dictionary = new Map(\r\n data.map((item) =\u003E [\r\n // Key\r\n item.id,\r\n // Item\r\n item,\r\n ])\r\n);\r\n\r\n// Utilize it, to test the performance of the dictionary itself as well.\r\nids.map((id) =\u003E dictionary.get(id));","IsDeferred":false}]}