File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ data$Build <- factor(
20
20
" JavaScript" ,
21
21
" JavaScript (gzip)" ,
22
22
" 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)"
26
27
)
27
28
)
28
29
@@ -35,11 +36,10 @@ thePlot <- ggplot(data,
35
36
legend.direction = " vertical" ,
36
37
legend.title = element_blank(),
37
38
axis.text.x = element_text(angle = 45 , hjust = 1 )) +
38
- ggtitle(" Code Size" ) +
39
+ ggtitle(" Code Size by Implementation and Build " ) +
39
40
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" ))
43
43
44
44
svgFile <- " size.svg"
45
45
ggsave(plot = thePlot ,
You can’t perform that action at this time.
0 commit comments