{"ScriptPreparationCode":null,"TestCases":[{"Name":"Map","Code":"const MyMap = new Map();\r\n\r\nfor (let i = 0; i \u003C 1000000; i\u002B\u002B) {\r\n MyMap.set(i, {value: i});\r\n}\r\n\r\nfor (let i = 0; i \u003C 5000000; i\u002B\u002B) {\r\n \tconst Id = Math.round(Math.random() * 1000000);\r\n MyMap.get(Id);\r\n}","IsDeferred":false},{"Name":"DataStore","Code":"class DataStore extends Map {\r\n\tconstructor () {\r\n \tsuper();\r\n\t\tthis.LRR = null;\r\n }\r\n \r\n \tset (Key, Val) {\r\n \tVal._DataStore = Key;\r\n \treturn super.set(Key, Val);\r\n }\r\n \r\n \tresolve (Key) {\r\n\t\tif (this.LRR \u0026\u0026 this.LRR._DataStore === Key) return this.LRR;\r\n \treturn super.get(Key);\r\n }\r\n}\r\n\r\nconst MyDS = new DataStore();\r\n\r\nfor (let i = 0; i \u003C 1000000; i\u002B\u002B) {\r\n MyDS.set(i, {value: i});\r\n}\r\n\r\nfor (let i = 0; i \u003C 5000000; i\u002B\u002B) {\r\n \tconst Id = Math.round(Math.random() * 1000000);\r\n MyDS.resolve(Id);\r\n}","IsDeferred":false}]}