Last active
April 23, 2016 00:55
-
-
Save githoov/26caf796c80cabdd7abffe84ea4b8447 to your computer and use it in GitHub Desktop.
Pinger Benchmarks: R Comparison
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# preliminaries | |
library(ggplot2) | |
# read in file | |
df <- read.csv(file = "~/bench_summary.txt", header = FALSE) | |
# generate query numbers and merge with data frame | |
df <- cbind(df, rep(rep(c(1:5),each = 5), 5)) | |
# rename columns | |
names(df) <- c("table_name", "run_sequence", "execution_time_ms", "query_number") | |
# tabular summary | |
ddply(df, c("query_number", "table_name"), summarise, median_exec = median(execution_time_ms)) | |
# visual summary | |
ggplot(df, aes(x = table_name, y = execution_time_ms, group = table_name)) + geom_boxplot(aes(colour = table_name)) + facet_grid(. ~ query_number) + xlab("Table Name") + ylab("Execution Time (ms)") + theme(legend.position = "none") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment