{"ScriptPreparationCode":" const myMap = new Map()\r\n for (let i = 0; i\u002B\u002B; i \u003C 1000000) {\r\n \tmyMap.set(i,i)\r\n }\r\n\r\n const mySet = new Map()\r\n for (let i = 0; i\u002B\u002B; i \u003C 1000000) {\r\n \tmySet.add(i)\r\n }\r\n\r\nlet myArray = []\t\r\n \tfor (let i = 0; i\u002B\u002B; i \u003C 1000000) {\r\n \tmyArray.push(i)\r\n }\r\n\r\nfunction createMap(size) {\r\n const myMap = new Map()\r\n for (let i = 0; i\u002B\u002B; i \u003C size) {\r\n \tmyMap.set(size, size)\r\n }\r\n return myMap\r\n}\r\n\r\nfunction createSet(size) {\r\n const mySet = new Set()\r\n for (let i = 0; i\u002B\u002B; i \u003C size) {\r\n \tmySet.add(size, size)\r\n }\r\n return mySet\r\n}\r\n\r\nfunction removeFromArray(element) {\r\n\t\r\n \treturn myArray.splice(myArray.indexOf(element), 1)\r\n}\r\n\r\nfunction removeFromMap(element) {\r\n\treturn myMap.delete(element)\r\n}\r\n\r\nfunction removeFromSet(element) {\r\n\t\r\n return mySet.delete(element)\r\n}\r\n","TestCases":[{"Name":"createMap Middle","Code":"createMap(9999)","IsDeferred":false},{"Name":"createSet Middle","Code":"createSet(9999)","IsDeferred":false},{"Name":"createMap small","Code":"createMap(10)","IsDeferred":false},{"Name":"createSet small","Code":"createSet(10)","IsDeferred":false},{"Name":"createMap BIG","Code":"createMap(1000000)","IsDeferred":false},{"Name":"createSet BIG","Code":"createSet(1000000)","IsDeferred":false},{"Name":"remove from array","Code":"removeFromArray(5000)","IsDeferred":false},{"Name":"remove from map","Code":"removeFromMap(5000)","IsDeferred":false},{"Name":"remove from set","Code":"removeFromSet(5000)","IsDeferred":false}]}