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