{"ScriptPreparationCode":null,"TestCases":[{"Name":"Set","Code":"const set = new Set();\r\nfor (let i = 0; i \u003C 1000; \u002B\u002Bi) {\r\n set.add(\u0060key_${i}\u0060);\r\n}\r\nlet result = 0;\r\nfor (let j = 0; j \u003C 100; \u002B\u002Bj) {\r\n const clone = new Set(set);\r\n for (let k = -500; k \u003C 500; \u002B\u002Bk) {\r\n result \u002B= clone.has(\u0060key_${k}\u0060);\r\n }\r\n}\r\nconsole.log(result);","IsDeferred":false},{"Name":"Object","Code":"const obj = {};\r\nfor (let i = 0; i \u003C 1000; \u002B\u002Bi) {\r\n obj[\u0060key_${i}\u0060] = true;\r\n}\r\nlet result = 0;\r\nfor (let j = 0; j \u003C 100; \u002B\u002Bj) {\r\n const clone = Object.assign({}, obj);\r\n for (let k = -500; k \u003C 500; \u002B\u002Bk) {\r\n result \u002B= clone.hasOwnProperty(\u0060key_${k}\u0060);\r\n }\r\n}\r\nconsole.log(result);","IsDeferred":false},{"Name":"Map","Code":"const map = new Map();\r\nfor (let i = 0; i \u003C 1000; \u002B\u002Bi) {\r\n map.set(\u0060key_${i}\u0060, true);\r\n}\r\nlet result = 0;\r\nfor (let j = 0; j \u003C 100; \u002B\u002Bj) {\r\n const clone = new Map(map);\r\n for (let k = -500; k \u003C 500; \u002B\u002Bk) {\r\n result \u002B= clone.get(\u0060key_${k}\u0060);\r\n }\r\n}\r\nconsole.log(result);","IsDeferred":false}]}