{"ScriptPreparationCode":"let map = new Map();\r\nlet obj = {};\r\n\r\nconst ENTRIES = 1000000;\r\nconst LOOKUPS = 300000;\r\nconst RUNS = 4;\r\n\r\nconst ids = Array.from({\r\n length: ENTRIES\r\n}, () =\u003E crypto.randomUUID());\r\nconst lookupIds = Array.from({\r\n length: LOOKUPS\r\n}, () =\u003E ids[Math.floor(Math.random() * (ENTRIES \u002B 1))]);\r\n\r\nfor (let i = 0; i \u003C ENTRIES; i\u002B\u002B) {\r\n map.set(ids[i], i);\r\n obj[ids[i]] = i;\r\n}","TestCases":[{"Name":"Map","Code":"for (let j = 0; j \u003C RUNS; j\u002B\u002B) {\r\n let checksum = 0;\r\n for (let i = 0; i \u003C LOOKUPS; i\u002B\u002B) {\r\n checksum \u002B= map.get(lookupIds[i]);\r\n }\r\n console.log(checksum);\r\n}","IsDeferred":false},{"Name":"Object/Record","Code":"for (let j = 0; j \u003C RUNS; j\u002B\u002B) {\r\n let checksum = 0;\r\n for (let i = 0; i \u003C LOOKUPS; i\u002B\u002B) {\r\n checksum \u002B= obj[lookupIds[i]];\r\n }\r\n console.log(checksum);\r\n}","IsDeferred":false}],"UseTinyBench":false}