aboutsummaryrefslogtreecommitdiff
path: root/tests/emails/report.R
diff options
context:
space:
mode:
authorQuentin <quentin@dufour.io>2024-02-23 17:32:38 +0000
committerQuentin <quentin@dufour.io>2024-02-23 17:32:38 +0000
commitd92ae5220cdaddf941da5a216fbd2c3549ccdec3 (patch)
tree464814294b6e50811e0c667cd1430c6855006f8a /tests/emails/report.R
parent0bb7cdf696190200d1885ec822518ac45b685a9b (diff)
parent1ea3de30995b434c4e59123c1ab634d89a0274b5 (diff)
downloadaerogramme-0.2.2.tar.gz
aerogramme-0.2.2.zip
Merge pull request 'Perf measurement & bottleneck fix' (#102) from perf/cpu-ram-bottleneck into main0.2.2
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/aerogramme/pulls/102
Diffstat (limited to 'tests/emails/report.R')
-rw-r--r--tests/emails/report.R14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/emails/report.R b/tests/emails/report.R
new file mode 100644
index 0000000..928597a
--- /dev/null
+++ b/tests/emails/report.R
@@ -0,0 +1,14 @@
+library(tidyverse)
+library(lubridate)
+read_csv("imap_commands_summary.csv") -> cmd
+
+ggplot(cmd, aes(x=command, y=count)) +
+ geom_bar(stat = "identity")+
+ theme_classic() +
+ facet_wrap(~aggregation, ncol=1, scales = "free")
+
+read_csv("mailbox_email_sizes.csv") -> mbx
+ggplot(mbx, aes(x=size, colour=mailbox)) +
+ stat_ecdf(pad=FALSE,geom = "step") +
+scale_x_log10()+ theme_classic()
+