{"ScriptPreparationCode":"var map = new Map();\r\nvar obj = {};\r\n\r\nvar i = 0, count = 10000, a;\r\n\r\nfor (; i \u003C 100000; i\u002B\u002B) {\r\n map.set(\u0027key-\u0027 \u002B i, i);\r\n obj[\u0027key-\u0027 \u002B i] = i;\r\n}\r\n\r\ni = 0;\r\n\r\nfunction getRandomKey() {\r\n return \u0027key-\u0027 \u002B Math.trunc(Math.random() * 100000);\r\n}","TestCases":[{"Name":"Map lookup","Code":"for (i = 0; i \u003C count; i\u002B\u002B) {\r\n a = map.get(getRandomKey());\r\n}","IsDeferred":false},{"Name":"Obj lookup","Code":"for (i = 0; i \u003C count; i\u002B\u002B) {\r\n a = obj[getRandomKey()];\r\n}","IsDeferred":false}]}