{"ScriptPreparationCode":null,"TestCases":[{"Name":"Just instantiate new array","Code":"for (var e = 0; e \u003C 100000; e\u002B\u002B){\r\n let size = 100;\r\n let arr1 = [];\r\n for (var i = 0; i \u003C size; i\u002B\u002B){\r\n arr1.push(i);\r\n }\r\n arr1 = [];\r\n}","IsDeferred":false},{"Name":"Set length to zero","Code":"for (var e = 0; e \u003C 100000; e\u002B\u002B){\r\n let size = 100;\r\n let arr2 = [];\r\n for (var i = 0; i \u003C size; i\u002B\u002B){\r\n arr2.push(i);\r\n }\r\n arr2.length = 0;\r\n}","IsDeferred":false},{"Name":"Splice","Code":"for (var e = 0; e \u003C 100000; e\u002B\u002B){\r\n let size = 100;\r\n let arr3 = [];\r\n for (var i = 0; i \u003C size; i\u002B\u002B){\r\n arr3.push(i);\r\n }\r\n arr3.splice(0, arr3.length);\r\n}","IsDeferred":false},{"Name":"Pop all values","Code":"for (var e = 0; e \u003C 100000; e\u002B\u002B){\r\n let size = 100;\r\n let arr4 = [];\r\n for (var i = 0; i \u003C size; i\u002B\u002B){\r\n arr4.push(i);\r\n }\r\n while(arr4.length \u003E 0){\r\n arr4.pop();\r\n }\r\n}","IsDeferred":false}]}