{"ScriptPreparationCode":"function fromEntriesN(entries){\r\n var obj = Object.create(null);\r\n for(var i = 0; i \u003C entries.length; i\u002B\u002B) {\r\n obj[entries[i][0]] = entries[i][1];\r\n }\r\n return obj;\r\n};\r\n\r\nfunction createBase(n) {\r\n var base = new Array(n);\r\n while(n--) {\r\n base[n] = [rnd(), rnd()];\r\n }\r\n return base;\r\n}\r\n\r\nconst rnd = function(){return Math.random().toString(36)};\r\n\r\nconst base = createBase(200);\r\n\r\nconst rndKey = function(){return base[Math.floor(Math.random() * base.length)][0]};\r\n\r\nconst map = new Map(base);\r\n\r\nconst obj = fromEntriesN(base);\r\n\r\nconst acc = []; \r\n\r\nfunction testMap() {\r\n const newKey = rnd();\r\n\r\n map.set(newKey, rnd());\r\n\r\n acc.push(\r\n map.get(rnd()),\r\n map.get(rndKey())\r\n ); // doing actual work\r\n\r\n map.set(rndKey(), rnd());\r\n\r\n map.delete(newKey);\r\n\r\n eval(\u0027acc.push(\u0022\u0027 \u002B rnd() \u002B \u0027\u0022);\u0027); // disable optimisations\r\n acc.length = 0; \r\n}\r\n\r\nfunction testObj() {\r\n const newKey = rnd();\r\n\r\n obj[newKey] = rnd();\r\n\r\n acc.push(\r\n obj[rnd()],\r\n obj[rndKey()]\r\n ) // doing actual work\r\n\r\n obj[rndKey()] = rnd();\r\n\r\n delete obj[newKey];\r\n\r\n eval(\u0027acc.push(\u0022\u0027 \u002B rnd() \u002B \u0027\u0022);\u0027); // disable optimisations\r\n acc.length = 0; // doing actual work\r\n}","TestCases":[{"Name":"testMap","Code":"testMap()","IsDeferred":false},{"Name":"testObj","Code":"testObj()","IsDeferred":false}]}