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
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/_benchmarks/benchmark.r b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/_benchmarks/benchmark.r
new file mode 100644 (file)
index 0000000..e94310d
--- /dev/null
@@ -0,0 +1,18 @@
+library("ggplot2")
+library("sitools")
+
+kb <- function(x) { f2si(x * 1000) }
+
+data <- read.table("bench", header=TRUE, sep=" ", colClasses=c("character", "character", "character", "numeric", "numeric"))
+
+ggplot(data = data, aes(x = Version, y = Time)) +
+    geom_point() +
+    scale_x_discrete(limits=data$Version) +
+    facet_wrap(~ Target)
+
+ggplot(data = data, aes(x = Version, y = Memory)) +
+    geom_point() +
+    scale_x_discrete(limits=data$Version) +
+    scale_y_continuous(labels = kb) +
+    facet_wrap(~ Target)
+