{"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: 0,\r\n });\r\n }\r\n return result;\r\n}","TestCases":[{"Name":"for..of","Code":"const array = generateTestArray();\r\nfor(const x of array) {\r\n\tx.r = x.a \u002B x.b;\r\n}","IsDeferred":false},{"Name":".map","Code":"const array = generateTestArray();\r\narray.map(x =\u003E x.a \u002B x.b)","IsDeferred":false},{"Name":".for (init array)","Code":"const array = generateTestArray();\r\nconst r = new Array(array.length);\r\nfor (let i = 0; i \u003C array.length; \u002B\u002Bi) {\r\n r[i] = array[i].a \u002B array[i].b;\r\n}","IsDeferred":false}]}