github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/_benchmarks/benchmark.r (about)

     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