{"ScriptPreparationCode":null,"TestCases":[{"Name":"Just instantiate new array","Code":"var size = 1000000;\r\nvar arr1 = [];\r\nfor (var i = 0; i \u003C size; i\u002B\u002B){\r\n arr1.push(i);\r\n}\r\n\r\narr1 = [];","IsDeferred":false},{"Name":"Set length to zero","Code":"var size = 1000000;\r\nvar arr2 = [];\r\nfor (var i = 0; i \u003C size; i\u002B\u002B){\r\n arr2.push(i);\r\n}\r\n\r\narr2.length = 0;","IsDeferred":false},{"Name":"Splice","Code":"var size = 1000000;\r\nvar arr3 = [];\r\nfor (var i = 0; i \u003C size; i\u002B\u002B){\r\n arr3.push(i);\r\n}\r\n\r\narr3.splice(0, arr3.length);","IsDeferred":false},{"Name":"Pop all values","Code":"var size = 1000000;\r\nvar arr4 = [];\r\nfor (var i = 0; i \u003C size; i\u002B\u002B){\r\n arr4.push(i);\r\n}\r\n\r\nwhile(arr4.length \u003E 0){\r\n arr4.pop();\r\n}","IsDeferred":false}]}