{"ScriptPreparationCode":null,"TestCases":[{"Name":"Always get keys","Code":"let testDict = {};\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n testDict[\u0022key\u0022 \u002B i] = 1;\r\n}\r\n\r\nlet sum = 0;\r\n\r\nfor (let i=0; i \u003C Object.keys(testDict).length; i\u002B\u002B) {\r\n sum \u002B= testDict[Object.keys(testDict)[i]]\r\n}","IsDeferred":false},{"Name":"Get keys once","Code":"let testDict = {};\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n testDict[\u0022key\u0022 \u002B i] = 1;\r\n}\r\n\r\nlet sum = 0;\r\nlet obKeys = Object.keys(testDict);\r\n\r\nfor (let i=0; i \u003C obKeys.length; i\u002B\u002B) {\r\n sum \u002B= testDict[obKeys[i]]\r\n} ","IsDeferred":false},{"Name":"Iterating using \u0022In\u0022","Code":"let testDict = {};\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n testDict[\u0022key\u0022 \u002B i] = 1;\r\n}\r\n\r\nlet sum = 0;\r\n\r\nfor (const testKey in testDict) {\r\n sum \u002B= testDict[testKey]\r\n} ","IsDeferred":false}]}