Skip to content

Commit

Permalink
Merge pull request #36 from hgb-bin-proteomics/develop
Browse files Browse the repository at this point in the history
[Draft] Add benchmarks
  • Loading branch information
michabirklbauer authored Apr 19, 2024
2 parents bd84eca + 86f8a64 commit aaf57f8
Show file tree
Hide file tree
Showing 42 changed files with 9,354 additions and 70 deletions.
47 changes: 47 additions & 0 deletions Benchmarks/benchmark_hpc_10000.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
library(tidyverse)
library(readxl)

data <- read_xlsx("benchmark_hpc_10000.xlsx")

data$Method <- factor(data$Method, levels = c("f32CPU_SV",
"i32CPU_SV",
"f32CPU_DV",
"i32CPU_DV",
"f32CPU_SM",
"i32CPU_SM",
"f32CPU_DM",
"i32CPU_DM",
"f32GPU_DV",
"f32GPU_DM",
"f32GPU_SM"))

std9_palette = c("#2B2D42", "#5C6378", "#8D99AE",
"#BDC6D1", "#EDF2F4", "#EE8B98",
"#EF233C", "#E41433", "#D90429")

grp9_palette = c("#2B2D42", "#5C6378", "#757E93",
"#A5B0C0", "#BDC6D1", "#EDF2F4",
"#EF233C", "#E41433", "#D90429")

nge9_palette = c("#E8D5D3", "#CDC1C4", "#B2ADB4",
"#C06B6E", "#CE2928", "#B62626",
"#9E2224", "#6A2123", "#362022")

grp11_palette = c("#2B2D42", "#383B50", "#44485D", "#5C6378",
"#BDC6D1", "#D5DCE3", "#E1E7EC", "#EDF2F4",
"#EF233C", "#E41433", "#D90429")

text_col <- c(rep("white", 4), rep("black", 4), rep("white", 3))

# export as 1200 x 800

ggplot(data, aes(x = Method, y = Mean, fill = Method)) +
geom_bar(stat="identity", color = "black") +
geom_errorbar(aes(x = Method, ymin = Mean-SD, ymax = Mean+SD), colour = "black", width = 0.3, linewidth = 1.0) +
scale_fill_manual(values = grp11_palette) +
ggtitle("Execution time of the different methods using 10 000 simulated candidates.") +
xlab("Method") +
ylab("Time (s)") +
geom_text(aes(label=round(Mean, 2)), size = 5.0, color = text_col, position = position_stack(vjust = 0.5)) +
theme_minimal(base_size = 18) +
theme(axis.text.x = element_text(angle = 90, hjust = 0, vjust = 0.5))
831 changes: 831 additions & 0 deletions Benchmarks/benchmark_hpc_10000.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Benchmarks/benchmark_hpc_10000.xlsx
Binary file not shown.
53 changes: 53 additions & 0 deletions Benchmarks/benchmark_hpc_100000.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
library(tidyverse)
library(readxl)

data <- read_xlsx("benchmark_hpc_100000.xlsx")

data <- data[-11,]

data$Method <- factor(data$Method, levels = c("f32CPU_SV",
"i32CPU_SV",
"f32CPU_DV",
"i32CPU_DV",
"f32CPU_SM",
"i32CPU_SM",
"f32CPU_DM",
"i32CPU_DM",
"f32GPU_DV",
"f32GPU_DM",
"f32GPU_SM"))

std9_palette = c("#2B2D42", "#5C6378", "#8D99AE",
"#BDC6D1", "#EDF2F4", "#EE8B98",
"#EF233C", "#E41433", "#D90429")

grp9_palette = c("#2B2D42", "#5C6378", "#757E93",
"#A5B0C0", "#BDC6D1", "#EDF2F4",
"#EF233C", "#E41433", "#D90429")

nge9_palette = c("#E8D5D3", "#CDC1C4", "#B2ADB4",
"#C06B6E", "#CE2928", "#B62626",
"#9E2224", "#6A2123", "#362022")

grp11_palette = c("#2B2D42", "#383B50", "#44485D", "#5C6378",
"#BDC6D1", "#D5DCE3", "#E1E7EC", "#EDF2F4",
"#EF233C", "#E41433", "#D90429")

grp10_palette = c("#2B2D42", "#383B50", "#44485D", "#5C6378",
"#BDC6D1", "#D5DCE3", "#E1E7EC", "#EDF2F4",
"#EF233C", "#E41433")

text_col <- c(rep("white", 4), rep("black", 4), rep("white", 2))

# export as 1200 x 800

ggplot(data, aes(x = Method, y = Mean, fill = Method)) +
geom_bar(stat="identity", color = "black") +
geom_errorbar(aes(x = Method, ymin = Mean-SD, ymax = Mean+SD), colour = "black", width = 0.3, linewidth = 1.0) +
scale_fill_manual(values = grp10_palette) +
ggtitle("Execution time of the different methods using 100 000 simulated candidates.") +
xlab("Method") +
ylab("Time (s)") +
geom_text(aes(label=round(Mean, 2)), size = 5.0, color = text_col, position = position_stack(vjust = 0.5)) +
theme_minimal(base_size = 18) +
theme(axis.text.x = element_text(angle = 90, hjust = 0, vjust = 0.5))
822 changes: 822 additions & 0 deletions Benchmarks/benchmark_hpc_100000.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Benchmarks/benchmark_hpc_100000.xlsx
Binary file not shown.
53 changes: 53 additions & 0 deletions Benchmarks/benchmark_hpc_1000000.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
library(tidyverse)
library(readxl)

data <- read_xlsx("benchmark_hpc_1000000.xlsx")

data <- data[-11,]

data$Method <- factor(data$Method, levels = c("f32CPU_SV",
"i32CPU_SV",
"f32CPU_DV",
"i32CPU_DV",
"f32CPU_SM",
"i32CPU_SM",
"f32CPU_DM",
"i32CPU_DM",
"f32GPU_DV",
"f32GPU_DM",
"f32GPU_SM"))

std9_palette = c("#2B2D42", "#5C6378", "#8D99AE",
"#BDC6D1", "#EDF2F4", "#EE8B98",
"#EF233C", "#E41433", "#D90429")

grp9_palette = c("#2B2D42", "#5C6378", "#757E93",
"#A5B0C0", "#BDC6D1", "#EDF2F4",
"#EF233C", "#E41433", "#D90429")

nge9_palette = c("#E8D5D3", "#CDC1C4", "#B2ADB4",
"#C06B6E", "#CE2928", "#B62626",
"#9E2224", "#6A2123", "#362022")

grp11_palette = c("#2B2D42", "#383B50", "#44485D", "#5C6378",
"#BDC6D1", "#D5DCE3", "#E1E7EC", "#EDF2F4",
"#EF233C", "#E41433", "#D90429")

grp10_palette = c("#2B2D42", "#383B50", "#44485D", "#5C6378",
"#BDC6D1", "#D5DCE3", "#E1E7EC", "#EDF2F4",
"#EF233C", "#E41433")

text_col <- c(rep("white", 4), rep("black", 4), rep("white", 2))

# export as 1200 x 800

ggplot(data, aes(x = Method, y = Mean, fill = Method)) +
geom_bar(stat="identity", color = "black") +
geom_errorbar(aes(x = Method, ymin = Mean-SD, ymax = Mean+SD), colour = "black", width = 0.3, linewidth = 1.0) +
scale_fill_manual(values = grp10_palette) +
ggtitle("Execution time of the different methods using 1 000 000 simulated candidates.") +
xlab("Method") +
ylab("Time (s)") +
geom_text(aes(label=round(Mean, 2)), size = 5.0, color = text_col, position = position_stack(vjust = 0.5)) +
theme_minimal(base_size = 18) +
theme(axis.text.x = element_text(angle = 90, hjust = 0, vjust = 0.5))
Loading

0 comments on commit aaf57f8

Please sign in to comment.