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