{"ScriptPreparationCode":"var arr = new Array(99999);","TestCases":[{"Name":"Basic for loop","Code":"for (var i=0; i\u003Carr.length; i\u002B\u002B) {}","IsDeferred":false},{"Name":"For loop but caching the length","Code":"for (var i=0, len=arr.length; i\u003Clen; i\u002B\u002B) {}","IsDeferred":false},{"Name":"While loop that imitates a for loop","Code":"var i = 0;\r\nwhile (i\u003Carr.length) {\r\n i\u002B\u002B;\r\n}","IsDeferred":false},{"Name":"While loop that imitates a for loop caching len","Code":"var i=0, len=arr.length;\r\nwhile (i\u003Clen) {\r\n i\u002B\u002B;\r\n}","IsDeferred":false},{"Name":"While loop in reverse simplifying the test","Code":"var i = arr.length; while (i--) {}\t","IsDeferred":false},{"Name":"While looping by popping values","Code":"var x;\r\nwhile (x = arr.pop()) {}","IsDeferred":false},{"Name":"for ... in loop","Code":"for (var i in arr) {}","IsDeferred":false},{"Name":"for ... in loop with integer test","Code":"var isInt = /(\\^[0-9]$)|(\\^[1-9][0-9]\u002B$)/;\r\nfor (var i in arr) {\r\n if(!isInt.test(i)){continue;}\r\n}","IsDeferred":false},{"Name":"For loop testing on existence rather than lengt","Code":"for (var i=0; arr[i]; i\u002B\u002B) {}\t","IsDeferred":false},{"Name":"For loop testing on existence plus array lookup","Code":"for (var i=0; arr[i]; i\u002B\u002B) {\r\n var x = arr[i];\r\n}","IsDeferred":false},{"Name":"For testing on existence rather than length array","Code":"for (var i=0, x; x = arr[i\u002B\u002B];) {}\t","IsDeferred":false},{"Name":"For reference","Code":"for (var i=0, len=arr.length; i\u003Clen; i\u002B\u002B) {\r\n var x = arr[i];\r\n}","IsDeferred":false},{"Name":"Array.forEach() native implementation.","Code":"arr.forEach(function(x){});","IsDeferred":false},{"Name":"For reference against forEach()","Code":"var f=function(x){};\r\nfor (var i=0, len=arr.length; i\u003Clen; i\u002B\u002B) {\r\n f(arr[i]);\r\n}","IsDeferred":false}]}