-
Notifications
You must be signed in to change notification settings - Fork 0
/
cleaner.py
90 lines (73 loc) · 3.65 KB
/
cleaner.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import os
import sys
trial_amount = int(sys.argv[1])
i = 1
# os.system("mkdir gathered_data")
os.system("rm CPU_Data.txt")
os.system("rm processed_data.txt")
os.system("rm outp.json")
os.system("rm top.txt")
while i <= trial_amount:
os.system("rm sort_cpu_100_" + str(i) + ".txt")
os.system("rm sort_cpu_1000_" + str(i) + ".txt")
os.system("rm sort_cpu_10000_" + str(i) + ".txt")
os.system("rm sort_cpu_30000_" + str(i) + ".txt")
os.system("rm sort_cpu_60000_" + str(i) + ".txt")
os.system("rm sort_cpu_100000_" + str(i) + ".txt")
os.system("rm sort_mem_100_" + str(i) + ".txt")
os.system("rm sort_mem_1000_" + str(i) + ".txt")
os.system("rm sort_mem_10000_" + str(i) + ".txt")
os.system("rm sort_mem_30000_" + str(i) + ".txt")
os.system("rm sort_mem_60000_" + str(i) + ".txt")
os.system("rm sort_mem_100000_" + str(i) + ".txt")
os.system("rm hash_cpu_100_" + str(i) + ".txt")
os.system("rm hash_cpu_1000_" + str(i) + ".txt")
os.system("rm hash_cpu_10000_" + str(i) + ".txt")
os.system("rm hash_cpu_30000_" + str(i) + ".txt")
os.system("rm hash_cpu_60000_" + str(i) + ".txt")
os.system("rm hash_cpu_100000_" + str(i) + ".txt")
os.system("rm hash_mem_100_" + str(i) + ".txt")
os.system("rm hash_mem_1000_" + str(i) + ".txt")
os.system("rm hash_mem_10000_" + str(i) + ".txt")
os.system("rm hash_mem_30000_" + str(i) + ".txt")
os.system("rm hash_mem_60000_" + str(i) + ".txt")
os.system("rm hash_mem_100000_" + str(i) + ".txt")
os.system("rm selection_cpu_100_" + str(i) + ".txt")
os.system("rm selection_cpu_1000_" + str(i) + ".txt")
os.system("rm selection_cpu_10000_" + str(i) + ".txt")
os.system("rm selection_cpu_30000_" + str(i) + ".txt")
os.system("rm selection_cpu_60000_" + str(i) + ".txt")
os.system("rm selection_cpu_100000_" + str(i) + ".txt")
os.system("rm selection_mem_100_" + str(i) + ".txt")
os.system("rm selection_mem_1000_" + str(i) + ".txt")
os.system("rm selection_mem_10000_" + str(i) + ".txt")
os.system("rm selection_mem_30000_" + str(i) + ".txt")
os.system("rm selection_mem_60000_" + str(i) + ".txt")
os.system("rm selection_mem_100000_" + str(i) + ".txt")
os.system("rm projection_cpu_100_" + str(i) + ".txt")
os.system("rm projection_cpu_1000_" + str(i) + ".txt")
os.system("rm projection_cpu_10000_" + str(i) + ".txt")
os.system("rm projection_cpu_30000_" + str(i) + ".txt")
os.system("rm projection_cpu_60000_" + str(i) + ".txt")
os.system("rm projection_cpu_100000_" + str(i) + ".txt")
os.system("rm projection_mem_100_" + str(i) + ".txt")
os.system("rm projection_mem_1000_" + str(i) + ".txt")
os.system("rm projection_mem_10000_" + str(i) + ".txt")
os.system("rm projection_mem_30000_" + str(i) + ".txt")
os.system("rm projection_mem_60000_" + str(i) + ".txt")
os.system("rm projection_mem_100000_" + str(i) + ".txt")
os.system("rm join_cpu_100_" + str(i) + ".txt")
os.system("rm join_cpu_1000_" + str(i) + ".txt")
os.system("rm join_cpu_10000_" + str(i) + ".txt")
os.system("rm join_cpu_30000_" + str(i) + ".txt")
os.system("rm join_cpu_60000_" + str(i) + ".txt")
os.system("rm join_cpu_100000_" + str(i) + ".txt")
os.system("rm join_mem_100_" + str(i) + ".txt")
os.system("rm join_mem_1000_" + str(i) + ".txt")
os.system("rm join_mem_10000_" + str(i) + ".txt")
os.system("rm join_mem_30000_" + str(i) + ".txt")
os.system("rm join_mem_60000_" + str(i) + ".txt")
os.system("rm join_mem_100000_" + str(i) + ".txt")
i += 1
for num in range(1, 100):
os.system("rm text_explain_query" + str(num) + ".txt")