{"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}\r\n\r\nvar array = generateTestArray();","TestCases":[{"Name":"Array.forEach","Code":"array.forEach((x) =\u003E {\r\n x.r = x.a \u002B x.b;\r\n });","IsDeferred":false},{"Name":"for of","Code":" for (const obj of array) {\r\n obj.r = obj.a \u002B obj.b;\r\n }","IsDeferred":false},{"Name":"for \u003Carray.length, indexing","Code":"for (let i = 0; i \u003C array.length; \u002B\u002Bi) {\r\n array[i].r = array[i].a \u002B array[i].b;\r\n }","IsDeferred":false},{"Name":"for \u003Clen, indexing","Code":"const len = array.length;\r\n for (let i = 0; i \u003C len; \u002B\u002Bi) {\r\n array[i].r = array[i].a \u002B array[i].b;\r\n }","IsDeferred":false},{"Name":"for \u003Carray.length, tmp element","Code":"for (let i = 0; i \u003C array.length; \u002B\u002Bi) {\r\n const x = array[i];\r\n x.r = x.a \u002B x.b;\r\n }","IsDeferred":false},{"Name":"for \u003Clen, tmp element","Code":"const len = array.length;\r\n for (let i = 0; i \u003C len; \u002B\u002Bi) {\r\n const x = array[i];\r\n x.r = x.a \u002B x.b;\r\n }","IsDeferred":false}]}