{"ScriptPreparationCode":null,"TestCases":[{"Name":"Shift loop","Code":"const 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}\r\nwhile(arr.length) {\r\n let index = arr.shift();\r\n index\u002B\u002B;\r\n}","IsDeferred":false},{"Name":"Unrolled Loop","Code":"let 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}\r\n\r\nfor (let i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n let index = arr[i];\r\n index\u002B\u002B;\r\n}\r\narr = [];","IsDeferred":false}]}