This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
/
plot_benchmark_results.R
210 lines (143 loc) · 5.06 KB
/
plot_benchmark_results.R
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
library(dplyr)
library(ggplot2)
asDirPath <- function(string){
if(!endsWith(string,"/"))string<-paste0(string,"/")
if(!dir.exists(string))warning("Directory does not exist, will exit!")
return(string)
}
PDIR="/home/isin/Projects/decluster/decluster_benchmark_plots_2212/v2/"
PDIR=asDirPath(PDIR)
d<-read.csv("/home/isin/Mount/decluster/benchmark_2211/results/benchmark/merged_benchmark_v2")
# colname type (unit) description
# s float (seconds) Running time in seconds
# h:m:s string (-) Running time in hour, minutes, seconds format
# max_rss float (MB) Maximum "Resident Set Size”, this is the non-swapped physical memory a process has used.
# max_vms float (MB) Maximum “Virtual Memory Size”, this is the total amount of virtual memory used by the process
# max_uss float (MB) “Unique Set Size”, this is the memory which is unique to a process and which would be freed if the process was terminated right now.
# max_pss float (MB) “Proportional Set Size”, is the amount of memory shared with other processes, accounted in a way that the amount is divided evenly between the processes that share it (Linux only)
# io_in float (MB) the number of MB read (cumulative).
# io_out float (MB) the number of MB written (cumulative).
# mean_load float (-) CPU usage over time, divided by the total running time (first row)
# cpu_time float(-) CPU time summed for user and system
MB_to_GB <- function(x) x/1024
format_hms <- function(x) {
as.POSIXct(format(x, format = "%H:%M:%S"), format = "%H:%M:%S")
}
d <- d |> dplyr::rename(
"seconds" = s,
"max_rss_mb" = max_rss,
"max_vms_mb" = max_vms,
"max_uss_mb" = max_uss,
"max_pss_mb" = max_pss,
"io_in_mb" = io_in,
"io_out_mb" = io_out,
"time_hms" = h.m.s,
)
d$max_rss_gb <- MB_to_GB(d$max_rss_mb)
d$max_vms_gb <- MB_to_GB(d$max_vms_mb)
d$max_uss_gb <- MB_to_GB(d$max_uss_mb)
d$max_pss_gb <- MB_to_GB(d$max_pss_mb)
d$io_in_gb <- MB_to_GB(d$io_in_mb)
d$io_out_gb <- MB_to_GB(d$io_out_mb)
d$time_hms <- format_hms(d$time_hms)
p <- ggplot(d, aes(color = tool, x = id, y = seconds)) +
xlab("") +
ylab("Runtime (seconds)") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot1.png"),p)
p <- ggplot(d, aes(color = tool, x = id, y = max_rss_mb)) +
xlab("") +
ylab("Maximum RAM usage (MB)") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot2.png"),p)
p <- ggplot(d, aes(color = tool, x = id, y = max_rss_gb)) +
xlab("") +
ylab("Maximum RAM usage (GB)") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot3.png"),p)
p<-ggplot(d, aes(color = tool, x = id, y = time_hms)) +
xlab("") +
ylab("Runtime (H:M:S)") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
scale_y_datetime(date_labels = "%H:%M:%S",date_breaks = "5 min")+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot4.png"),p)
p <- ggplot(d, aes(color = tool, x = id, y = max_vms_mb)) +
xlab("") +
ylab("Maximum virtual memory usage (MB)") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot5.png"),p)
p <- ggplot(d, aes(color = tool, x = id, y = max_vms_gb)) +
xlab("") +
ylab("Maximum virtual memory usage (GB)") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot6.png"),p)
p <- ggplot(d, aes(color = tool, x = id, y = io_in_mb)) +
xlab("") +
ylab("Cumulative number of MB read during process") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot7.png"),p)
p <- ggplot(d, aes(color = tool, x = id, y = io_in_gb)) +
xlab("") +
ylab("Cumulative number of GB read during process") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot8.png"),p)
p <- ggplot(d, aes(color = tool, x = id, y = io_out_mb)) +
xlab("") +
ylab("Cumulative number of MB written during process") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot9.png"),p)
p <- ggplot(d, aes(color = tool, x = id, y = io_out_gb)) +
xlab("") +
ylab("Cumulative number of GB written during process") +
geom_boxplot()+
coord_flip()+
theme_bw()+
geom_point(shape=1,alpha=0.5)+
theme(legend.position="top")+labs(color="Tool")
p
ggsave(paste0(PDIR,"decluster_bm_221209_plot10.png"),p)