{"ScriptPreparationCode":"const rnd = () =\u003E Math.random().toString(36);\r\n\r\n const base = Array.from({length: 200}, () =\u003E [rnd(), rnd()]);\r\n\r\n const rndKey = () =\u003E base[Math.floor(Math.random() * base.length)][0];\r\n\r\n const map = new Map(base);\r\n\r\n const obj = Object.setPrototypeOf(Object.fromEntries(base), null);\r\n\r\n const acc = []; \r\n\r\n function 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\n function testObj() {\r\n\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 }\r\n","TestCases":[{"Name":"Map","Code":"testMap()","IsDeferred":false},{"Name":"Obj","Code":"testObj()","IsDeferred":false}]}