{"ScriptPreparationCode":"function generateTestArray() {\r\n const result = [];\r\n for (let i = 0; i \u003C 1000000; \u002B\u002Bi) {\r\n result.push({\r\n a: i,\r\n b: i / 2,\r\n });\r\n }\r\n return result;\r\n}\r\n\r\nvar array = generateTestArray();\r\nvar res;","TestCases":[{"Name":"array.forEach","Code":"array.forEach((x) =\u003E {\r\n res = x.a \u002B x.b;\r\n});\r\nconsole.log(res);","IsDeferred":false},{"Name":"for..of","Code":"for(const x of array) {\r\n\tres = x.a \u002B x.b;\r\n}\r\nconsole.log(res);","IsDeferred":false},{"Name":"for..of with entries","Code":"for(const [index, x] of array.entries()) {\r\n\tres = x.a \u002B x.b;\r\n}\r\nconsole.log(res);","IsDeferred":false},{"Name":"for","Code":"for (let i = 0; i \u003C array.length; \u002B\u002Bi) {\r\n const x = array[i];\r\n res = x.a \u002B x.b;\r\n}\r\nconsole.log(res);","IsDeferred":false}]}