{"ScriptPreparationCode":"var\r\n arr = Int32Array.from({ length: 1000 }, (_, i) =\u003E i),\r\n fun = n =\u003E 3 * n \u003E\u003E 1,\r\n res = 0;","TestCases":[{"Name":"regular for (;;)","Code":"const array = arr, len = arr.length;\r\nfor (var i = 0; i \u003C len; res \u002B= fun(array[i\u002B\u002B]));\r\nconsole.log(\u0027for (;;):\u0027, res, res = 0);","IsDeferred":false},{"Name":"for..in","Code":"const array = arr;\r\nfor (const i in array) res \u002B= fun(array[i]);\r\nconsole.log(\u0027for (in):\u0027, res, res = 0);","IsDeferred":false},{"Name":"for..of","Code":"for (const v of arr) res \u002B= fun(v);\r\nconsole.log(\u0027for (of):\u0027, res, res = 0);","IsDeferred":false},{"Name":"forEach()","Code":"arr.forEach(v =\u003E res \u002B= fun(v));\r\nconsole.log(\u0027forEach():\u0027, res, res = 0);","IsDeferred":false},{"Name":"map()","Code":"arr.map(v =\u003E res \u002B= fun(v));\r\nconsole.log(\u0027map():\u0027, res, res = 0);","IsDeferred":false},{"Name":"reduce()","Code":"res = arr.reduce((a, v) =\u003E a \u002B v);\r\nconsole.log(\u0027reduce():\u0027, res, res = 0);","IsDeferred":false}]}