{"ScriptPreparationCode":"arr = [];\r\nconst ARRAY_SIZE = 5000;\r\nfor (let i = 0; i \u003C ARRAY_SIZE; i\u002B\u002B) {\r\n arr.push(i);\r\n}","TestCases":[{"Name":"Shift loop","Code":"while(arr.length) {\r\n let index = arr.shift();\r\n index\u002B\u002B;\r\n}","IsDeferred":false},{"Name":"Unrolled Loop","Code":"const arrSize = arr.length;\r\nfor (let i = 0; i \u003C arrSize; i\u002B\u002B) {\r\n let index = arr[i];\r\n index\u002B\u002B;\r\n}\r\narr = [];","IsDeferred":false}]}