{"ScriptPreparationCode":"const array = [];\r\nfor (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}","TestCases":[{"Name":"for","Code":"const r = 0;\r\nfor (let i = 0; i \u003C array.length; \u002B\u002Bi) {\r\n r \u002B= array[i].a \u002B array[i].b;\r\n}","IsDeferred":false},{"Name":".reduce","Code":"array.reduce((p, x) =\u003E p \u002B x.a \u002B x.b, 0);","IsDeferred":false},{"Name":".reduce (destructuring)","Code":"array.reduce((p, {a,b}) =\u003E p \u002B a \u002B b, 0);","IsDeferred":false},{"Name":"for..of (reduce)","Code":"let r = 0;\r\nfor (const x of array) {\r\n r \u002B= x.a \u002B x.b;\r\n}","IsDeferred":false},{"Name":"for..of (reduce) (destructuring)","Code":"let r = 0;\r\nfor (const {a,b} of array) {\r\n r \u002B= a \u002B b;\r\n}","IsDeferred":false}]}