-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathres.Rmd
38 lines (24 loc) · 1015 Bytes
/
res.Rmd
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
```{r}
library(tidyverse)
d <- read_delim("res.csv", delim=":",
col_names = c("instance","tool","ncores","cores","runtime")) %>%
filter(instance=="x1_32x", ncores>=32)
cores_order <- d %>% arrange(ncores) %>% .$cores %>% unique
```
```{r fig.height=6}
d %>% mutate(cores=factor(cores, levels=cores_order)) %>%
ggplot() + geom_boxplot(aes(x = cores, y = runtime, color = tool)) +
coord_flip() + facet_grid(tool~.) + ylim(c(0,NA))
```
```{r fig.height=6}
d %>% mutate(cores=factor(cores, levels=cores_order)) %>%
ggplot() + geom_boxplot(aes(x = cores, y = runtime, color = tool)) +
coord_flip() + facet_grid(tool~., scales = "free") + ylim(c(0,NA))
```
```{r fig.height=4}
d %>% mutate(cores=factor(cores, levels=cores_order)) %>%
filter(!grepl(",",cores)) %>%
group_by(tool) %>% mutate(runtime_norm = runtime*ncores/min(runtime*ncores)) %>%
ggplot() + geom_boxplot(aes(x = cores, y = runtime_norm, color = tool)) +
coord_flip() + facet_grid(tool~.) + ylim(c(0,NA))
```