{"ScriptPreparationCode":null,"TestCases":[{"Name":"for-loop \u002B Map.set","Code":"const obj = {}\r\nconst map = new Map()\r\nconst n = 1000000;\r\n\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n map.set(i, i);\r\n}","IsDeferred":false},{"Name":"for-loop \u002B Object assignment ","Code":"const obj = {}\r\nconst map = new Map()\r\nconst n = 1000000;\r\n\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n obj[i] = i;\r\n}","IsDeferred":false},{"Name":"forEach \u002B Map.set","Code":"const obj = {}\r\nconst map = new Map()\r\nconst n = Array(1000000).fill(0)\r\n\r\nn.forEach((value, index) =\u003E {\r\n map.set(index, index);\r\n})","IsDeferred":false},{"Name":"forEach \u002B Object assignment ","Code":"const obj = {}\r\nconst map = new Map()\r\nconst n = Array(1000000).fill(0)\r\n\r\nn.forEach((value, index) =\u003E {\r\n obj[index] = index;\r\n})","IsDeferred":false}]}