Skip to content

Commit a77ecfa

Browse files
committed
bench: Update size plotting R script
1 parent 5e866b7 commit a77ecfa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bench/size.r

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ data$Build <- factor(
2020
"JavaScript",
2121
"JavaScript (gzip)",
2222
"WebAssembly",
23-
"WebAssembly (wasm-gc)",
24-
"WebAssembly (gzip)",
25-
"WebAssembly (wasm-gc and gzip)"
23+
"WebAssembly (gc)",
24+
"WebAssembly (gc + snip)",
25+
"WebAssembly (gc + snip + opt)",
26+
"WebAssembly (gc + snip + opt + gzip)"
2627
)
2728
)
2829

@@ -35,11 +36,10 @@ thePlot <- ggplot(data,
3536
legend.direction="vertical",
3637
legend.title = element_blank(),
3738
axis.text.x = element_text(angle = 45, hjust = 1)) +
38-
ggtitle("Code Size") +
39+
ggtitle("Code Size by Implementation and Build") +
3940
labs(x = "Implementation and Build",
40-
y = "Size (bytes)") +
41-
scale_color_manual(labels = c("JavaScript Size", "WebAssembly Size"),
42-
values = c("blue", "red"))
41+
y = "Code Size (bytes)") +
42+
scale_fill_discrete(labels = c("JavaScript Size", "WebAssembly Size"))
4343

4444
svgFile <- "size.svg"
4545
ggsave(plot = thePlot,

0 commit comments

Comments
 (0)