{"ScriptPreparationCode":"const ticks = 1000;\r\nconst length = 10;\r\nlet arr = [];\r\nconst set = new Set();","TestCases":[{"Name":"Set","Code":"for(let tickCount = 0; tickCount \u003C ticks; tickCount\u002B\u002B){\r\n // NextTick\r\n for(const c of set){\r\n c();\r\n }\r\n set.clear();\r\n \r\n // Game\r\n for(let i = 0; i \u003C length; i\u002B\u002B){\r\n \tset.add(() =\u003E Math.random());\r\n }\r\n}","IsDeferred":false},{"Name":"For","Code":"for(let tickCount = 0; tickCount \u003C ticks; tickCount\u002B\u002B){\r\n // NextTick\r\n arr.forEach((c) =\u003E c());\r\n arr.length = 0;\r\n \r\n // Game\r\n for(let i = 0; i \u003C length; i\u002B\u002B){\r\n \tarr.push(() =\u003E Math.random());\r\n }\r\n}","IsDeferred":false},{"Name":"For []","Code":"for(let tickCount = 0; tickCount \u003C ticks; tickCount\u002B\u002B){\r\n // NextTick\r\n arr.forEach((c) =\u003E c());\r\n arr = [];\r\n \r\n // Game\r\n for(let i = 0; i \u003C length; i\u002B\u002B){\r\n \tarr.push(() =\u003E Math.random());\r\n }\r\n}","IsDeferred":false},{"Name":"While","Code":"for(let tickCount = 0; tickCount \u003C ticks; tickCount\u002B\u002B){\r\n // NextTick\r\n while(true){\r\n const c = arr.pop();\r\n\r\n if(c === undefined) break;\r\n\r\n c();\r\n }\r\n arr = [];\r\n \r\n // Game\r\n for(let i = 0; i \u003C length; i\u002B\u002B){\r\n \tarr.push(() =\u003E Math.random());\r\n }\r\n}","IsDeferred":false},{"Name":"While If","Code":"for(let tickCount = 0; tickCount \u003C ticks; tickCount\u002B\u002B){\r\n if(arr.length){\r\n \t// NextTick\r\n while(true){\r\n const c = arr.pop();\r\n\r\n if(c === undefined) break;\r\n\r\n c();\r\n }\r\n arr = [];\r\n }\r\n \r\n // Game\r\n for(let i = 0; i \u003C length; i\u002B\u002B){\r\n \tarr.push(() =\u003E Math.random());\r\n }\r\n}","IsDeferred":false}]}