{"ScriptPreparationCode":"var map = new Map();\r\nvar obj = {};\r\nfunction getRandomInt(max) {\r\n return Math.floor(Math.random() * max);\r\n} \r\nfor(let i = 0 ; i \u003C 5000 ; i\u002B\u002B){\r\n const randomNm = getRandomInt(10000);\r\n map.set(randomNm, randomNm);\r\n obj[randomNm] = randomNm;\r\n}\r\n\r\nvar i = 0, count = 1000, a;","TestCases":[{"Name":"Map lookup","Code":"for(let i = 0 ; i \u003C 5000 ; i\u002B\u002B){\r\n const randomNm = getRandomInt(10000);\r\n a = map.get(randomNm);\r\n}","IsDeferred":false},{"Name":"Obj lookup","Code":"for(let i = 0 ; i \u003C 5000 ; i\u002B\u002B){\r\n const randomNm = getRandomInt(10000);\r\n a = obj[randomNm];\r\n}","IsDeferred":false}]}