{"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 x: 0,\r\n y: 0,\r\n });\r\n }\r\n return result;\r\n}","TestCases":[{"Name":"For","Code":"const array = generateTestArray();\r\nfor (let i = 0; i \u003C array.length; i\u002B\u002B) {\r\n\tarray[0].x = array[0].a \u002B array[0].b;\r\n \tarray[0].y = array[0].a \u002B array[0].b * 2;\r\n}","IsDeferred":false},{"Name":"For...Of","Code":"const array = generateTestArray();\r\nfor (const a of array) {\r\n\ta.x = a.a \u002B a.b;\r\n \ta.y = a.a \u002B a.b * 2;\r\n}","IsDeferred":false},{"Name":"ForEach","Code":"const array = generateTestArray();\r\narray.forEach(a =\u003E {\r\n a.x = a.a \u002B a.b;\r\n a.y = a.a \u002B a.b * 2;\r\n});","IsDeferred":false}]}