{"ScriptPreparationCode":null,"TestCases":[{"Name":"arrays","Code":"let keys = [];\r\nlet values = [];\r\nlet weakmap = new WeakMap();\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n const keyobj = {\r\n key: i\r\n };\r\n const valobj = {\r\n val: \u0060val_${i}\u0060\r\n };\r\n keys[i] = keyobj;\r\n values[i] = valobj;\r\n weakmap.set(keyobj, valobj);\r\n}\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n const key = keys[i];\r\n const val = values[key.key];\r\n}","IsDeferred":false},{"Name":"weakmap","Code":"let keys = [];\r\nlet values = [];\r\nlet weakmap = new WeakMap();\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n const keyobj = {\r\n key: i\r\n };\r\n const valobj = {\r\n val: \u0060val_${i}\u0060\r\n };\r\n keys[i] = keyobj;\r\n values[i] = valobj;\r\n weakmap.set(keyobj, valobj);\r\n}\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n const key = keys[i];\r\n const val = weakmap.get(key);\r\n}","IsDeferred":false}]}