Skip to content

Commit

Permalink
fix(bench): add stdev on viz
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Oct 26, 2023
1 parent f1f6561 commit 52ee21c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/viz_bench.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ library(tidyverse)

timings <- read_csv("timings.csv")

timings <- timings %>%
bench <- timings %>%
rename(
tool = command,
thousand_lines = parameter_N,
Expand All @@ -18,8 +18,17 @@ timings <- timings %>%
select(tool, mean, fmt, stddev, thousand_lines) %>%
arrange(thousand_lines, tool)

ggplot(timings, aes(x = thousand_lines, y = log10(mean), color = tool)) +
ggplot(bench, aes(x = thousand_lines, y = log10(mean), color = tool)) +
geom_line() +
geom_ribbon(
aes(
y = log10(mean),
ymin = log10(mean - stddev),
ymax = log10(mean + stddev),
fill = "lightgrey"
),
alpha = .2
) +
xlab("Thousands of lines parsed") +
ylab("Log10 time (seconds)") +
theme_bw(base_size = 18) +
Expand Down

0 comments on commit 52ee21c

Please sign in to comment.