{"ScriptPreparationCode":null,"TestCases":[{"Name":"Preallocate","Code":"var N = 10000;\r\nvar result = new Array(N);\r\nfor (var i = 0; i \u003C N; i\u002B\u002B) {\r\n result[i] = i * 2;\r\n}","IsDeferred":false},{"Name":"Preallocate \u0026 fill","Code":"var N = 10000;\r\nvar result = new Array(N).fill(0);\r\nfor (var i = 0; i \u003C N; i\u002B\u002B) {\r\n result[i] = i * 2;\r\n}","IsDeferred":false},{"Name":"Push","Code":"var N = 10000;\r\nvar result = [];\r\nfor (var i = 0; i \u003C N; i\u002B\u002B) {\r\n result.push(i * 2);\r\n}","IsDeferred":false},{"Name":"Index","Code":"var N = 10000;\r\nvar result = [];\r\nfor (var i = 0; i \u003C N; i\u002B\u002B) {\r\n result[i] = i * 2;\r\n}","IsDeferred":false}]}