Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / _benchmarks / benchmark.r
1 library("ggplot2")
2 library("sitools")
3
4 kb <- function(x) { f2si(x * 1000) }
5
6 data <- read.table("bench", header=TRUE, sep=" ", colClasses=c("character", "character", "character", "numeric", "numeric"))
7
8 ggplot(data = data, aes(x = Version, y = Time)) +
9     geom_point() +
10     scale_x_discrete(limits=data$Version) +
11     facet_wrap(~ Target)
12
13 ggplot(data = data, aes(x = Version, y = Memory)) +
14     geom_point() +
15     scale_x_discrete(limits=data$Version) +
16     scale_y_continuous(labels = kb) +
17     facet_wrap(~ Target)
18