{"ScriptPreparationCode":"function generateTestArray() {\r\n const result = [];\r\n for (let i = 0; i \u003C 1000000; \u002B\u002Bi) {\r\n result.push(i);\r\n }\r\n return result;\r\n}\r\nwindow.array = generateTestArray();","TestCases":[{"Name":"map comparison: for..of","Code":"const r = [];\r\nfor(const x of array) {\r\n r.push(x);\r\n}","IsDeferred":false},{"Name":"map comparison: .map","Code":"array.map(x =\u003E x)","IsDeferred":false},{"Name":"reduce comparision: for..of","Code":"let r = 0;\r\nfor (const x of array) {\r\n r \u002B= x;\r\n}","IsDeferred":false},{"Name":"reduce comparision: .reduce","Code":"array.reduce((p, x) =\u003E p \u002B x, 0);","IsDeferred":false},{"Name":"raw iteration: for..of","Code":"for(const x of array) {}","IsDeferred":false},{"Name":"raw iteration: forEach","Code":"array.forEach(x =\u003E {})","IsDeferred":false}]}