loop once
{"ScriptPreparationCode":"var arr = Array.from({\r\n length: 1000\r\n}).map((_, i) =\u003E i);\r\nvar addOne = (i) =\u003E i \u002B 1;\r\nvar addTwo = (i) =\u003E i \u002B 2;","TestCases":[{"Name":"loop once","Code":"arr.forEach((i) =\u003E { addOne(i); addTwo(i); });","IsDeferred":false},{"Name":"loop twice","Code":"arr.forEach((i) =\u003E addOne(i)); arr.forEach((i) =\u003E addTwo(i));","IsDeferred":false}]}