{"ScriptPreparationCode":"var arr = [];\r\nconst randomizeArray = () =\u003E {\r\n\tfor\t(let i = 0; i \u003C 50000; i\u002B\u002B) {\r\n\t\tarr[i] = Math.floor(Math.random() * 100000);\r\n\t}\r\n}\r\n\r\nrandomizeArray();","TestCases":[{"Name":"for-in","Code":"let\tdummy = 0;\r\nfor (let j = 0; j \u003C 100; j\u002B\u002B){\r\n\t\tfor\t(let i in arr) {\r\n\t\t\tdummy \u002B= i;\r\n\t\t}\r\n}","IsDeferred":false},{"Name":"for-of","Code":"let\tdummy = 0;\r\nfor (let j = 0; j \u003C 100; j\u002B\u002B){\r\n\t\tfor\t(let i of arr) {\r\n\t\t\tdummy \u002B= i;\r\n\t\t}\r\n}","IsDeferred":false},{"Name":"native","Code":"let\tdummy = 0;\r\nfor (let j = 0; j \u003C 100; j\u002B\u002B){\r\n\t\tfor\t(let i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n\t\t\tdummy \u002B= arr[i];\r\n\t\t}\r\n}","IsDeferred":false},{"Name":"native - cache lengh","Code":"let\tdummy = 0;\r\nfor (let j = 0; j \u003C 100; j\u002B\u002B){\r\n\t\tlet length = arr.length;\r\n\t\tfor\t(let i = 0; i \u003C length; i\u002B\u002B) {\r\n\t\t\tdummy \u002B= arr[i];\r\n\t\t}\r\n}","IsDeferred":false}]}