diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-09-23 19:15:58 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-09-23 19:15:58 +0200 |
commit | 700025e4795f2d9bd25173c619905dbfe26f7ec8 (patch) | |
tree | 44d8fcc82a9e12caeb0c0bbc81e9898b2d58e048 /artifacts/2022-09-23-s3lat | |
parent | 5b460dd10ffe703189c7bff755d005a20b1e3e69 (diff) | |
download | mknet-700025e4795f2d9bd25173c619905dbfe26f7ec8.tar.gz mknet-700025e4795f2d9bd25173c619905dbfe26f7ec8.zip |
Add plot
Diffstat (limited to 'artifacts/2022-09-23-s3lat')
-rw-r--r-- | artifacts/2022-09-23-s3lat/garage-v0.8.csv (renamed from artifacts/2022-09-23-s3lat/garage-v0.8) | 0 | ||||
-rw-r--r-- | artifacts/2022-09-23-s3lat/plot.R | 30 | ||||
-rw-r--r-- | artifacts/2022-09-23-s3lat/plot.png | bin | 0 -> 145685 bytes |
3 files changed, 30 insertions, 0 deletions
diff --git a/artifacts/2022-09-23-s3lat/garage-v0.8 b/artifacts/2022-09-23-s3lat/garage-v0.8.csv index dbbf9ad..dbbf9ad 100644 --- a/artifacts/2022-09-23-s3lat/garage-v0.8 +++ b/artifacts/2022-09-23-s3lat/garage-v0.8.csv diff --git a/artifacts/2022-09-23-s3lat/plot.R b/artifacts/2022-09-23-s3lat/plot.R new file mode 100644 index 0000000..dd904e6 --- /dev/null +++ b/artifacts/2022-09-23-s3lat/plot.R @@ -0,0 +1,30 @@ +library(tidyverse) + +read_csv("garage-v0.7.csv") %>% add_column(daemon="garage 0.7.3") -> a +read_csv("garage-v0.8.csv") %>% add_column(daemon="garage 0.8.0 beta") -> b +read_csv("minio-20220917.csv") %>% add_column(daemon="minio RELEASE.2022-09-17") -> c +bind_rows(a,b,c) %>% group_by(daemon,endpoint) %>% summarise( + time_mean = mean(nanoseconds) / 1000 / 1000, + time_max = max(nanoseconds) / 1000 / 1000, + time_min = min(nanoseconds) / 1000 / 1000 +) -> c + +st <- "100 measurements, 5 nodes, 50ms RTT + 10ms jitter between nodes\nno contention: latency is due to intra-cluster communications\ncolored bar = mean latency, error bar = min and max latency" + + +ggplot(c, aes(x=endpoint,y=time_mean,fill=daemon,ymin=time_min,ymax=time_max)) + + geom_bar(stat="identity", position=position_dodge(),color="black") + + geom_errorbar(position=position_dodge(.9),width=.2) + + scale_y_continuous(expand=c(0,0))+ + coord_flip() + + labs( + x="S3 Endpoint", + y="Latency (ms)", + fill="Daemon", + caption="Get the code to reproduce this graph at https://git.deuxfleurs.fr/Deuxfleurs/mknet", + title="S3 endpoint latency in a simulated geo-distributed cluster", + subtitle=st) + + theme_classic() + + theme(legend.position = c(.8, .3)) + +ggsave("./plot.png", width=200, height=110, units="mm") diff --git a/artifacts/2022-09-23-s3lat/plot.png b/artifacts/2022-09-23-s3lat/plot.png Binary files differnew file mode 100644 index 0000000..8962b65 --- /dev/null +++ b/artifacts/2022-09-23-s3lat/plot.png |