blob: c1e9757a00d6f615624002d7ad4b6bd26e1dea1a [file] [log] [blame]
Marc Kupietz899ba2a2022-03-17 21:50:22 +01001df <- read_tsv("performance.tsv")
2ylabel <- colnames(df)[7]
3colnames(df)[7] <- "perf"
4df %>%
5 fill(Tool) %>%
6 filter(Tool!="wc", !is.na(perf)) %>%
7 arrange(desc(perf)) %>%
8 mutate(tool = paste0(Tool, if_else(is.na(Model), "", paste0(" (", Model, ")")))) %>%
9 mutate(Tool= factor(tool) %>% fct_reorder(perf)) %>%
10 ggplot(aes(x=Tool, y=perf)) +
11 geom_col() +
12 ylab("Tokens/ms") +
13 xlab(NULL) +
14 coord_flip()# +
15# geom_text(aes(label=perf), position=position_stack(vjus=0.5), hjust=0.25)
16#ggsave("/tmp/tok_perf.png", width = 70 * .pt, height = 40 *.pt, units = "mm", dpi = 600)