{"ScriptPreparationCode":null,"TestCases":[{"Name":"New array","Code":"for( let i = 0; i \u003C 10000; i\u002B\u002B ) {\r\n const node = {\r\n \tchildren: []\r\n };\r\n const nodes = i % 2 === 0 ? [ 1 ] : [];\r\n for( let j = 0; j \u003C nodes.length; j\u002B\u002B ) {\r\n node.children[ i ] = nodes[ j ];\r\n }\r\n}","IsDeferred":false},{"Name":"Reuse array","Code":"const emptyArray = [];\r\nfor( let i = 0; i \u003C 10000; i\u002B\u002B ) {\r\n const node = {\r\n \tchildren: []\r\n };\r\n const nodes = i % 2 === 0 ? [ 1 ] : emptyArray;\r\n for( let j = 0; j \u003C nodes.length; j\u002B\u002B ) {\r\n node.children[ i ] = nodes[ j ];\r\n }\r\n}","IsDeferred":false}]}