{"ScriptPreparationCode":null,"TestCases":[{"Name":"for loop","Code":"const items = Array.from({ length: 100000 }, (_, index) =\u003E index);\r\n\r\nfor (let i = 0; i \u003C items.length; i\u002B\u002B) {\r\n const result = items[i] * 2;\r\n}","IsDeferred":false},{"Name":"forEach","Code":"const items = Array.from({ length: 100000 }, (_, index) =\u003E index);\r\n\r\nitems.forEach((item) =\u003E {\r\n const result = item * 2;\r\n});","IsDeferred":false},{"Name":"map","Code":"const items = Array.from({ length: 100000 }, (_, index) =\u003E index);\r\n \r\nconst results = items.map((item) =\u003E {\r\n return item * 2;\r\n});","IsDeferred":false},{"Name":"reduce","Code":"const items = Array.from({ length: 100000 }, (_, index) =\u003E index);\r\n\r\nconst results = items.reduce((accumulator, item) =\u003E {\r\n const result = item * 2;\r\n accumulator.push(result);\r\n return accumulator;\r\n}, []);","IsDeferred":false}]}