Change links

This commit is contained in:
Quentin 2019-11-02 15:19:15 +01:00
parent 633a3f40e8
commit 207c593536
2 changed files with 21 additions and 3 deletions

View file

@ -21,7 +21,7 @@ gd <- ggplot(sqldf("select * from d where decile != 'MAX'") %>% arrange(decile),
geom_hline(yintercept = 400) +
theme_classic()
e <- read.csv("../../donar-res/tmp_light/boxplot5.csv")
e <- read.csv("../../donar-res/tmp_light/links3.csv")
e$strat <- as.factor(e$strat)
e$links <- as.factor(e$links)
e$strat <- revalue(e$strat, c("1"="T", "0"="D"))
@ -53,4 +53,22 @@ gf <- ggplot(sqldf("select * from f where decile != 'MAX'") %>% arrange(decile),
xlab("Strategy:Fast Links") +
theme_classic()
g <- read.csv("../../donar-res/tmp_light/boxplot6.csv")
g$strat <- as.factor(g$strat)
g$strat <- revalue(g$strat, c("1"="T", "0"="D"))
g$guard <- as.factor(g$guard)
g$guard <- revalue(g$guard, c("guard_1"="1", "guard_3"="3", "guard_5"="5", "guard_7"="7", "guard_9"="9", "guard_11"="11", "simple"="inf"))
g$guard <- factor(g$guard, levels=c("1", "3", "5", "7", "9", "11", "inf"))
g$decile <-factor(g$decile,levels=c("MAX", "D99.9", "D99", "D75", "D50", "D25", "D1", "D0.1", "MIN"))
g <- g %>% mutate (lat = latency / 1000)
gg <- ggplot(sqldf("select * from g where decile != 'MAX'") %>% arrange(decile), aes(x=strat:guard,y=lat,group=decile,fill=decile)) +
geom_bar(stat='identity', position='identity') +
scale_fill_grey() +
geom_hline(yintercept = 200) +
geom_hline(yintercept = 400) +
coord_cartesian(ylim=c(0,600)) +
ylab("Latency (ms)") +
xlab("Strategy:Guards") +
theme_classic()
plot_grid(gd, ge, gf, ncol=1) + ggsave("light_config.png", dpi=300, dev='png', height=20, width=20, units="cm")

View file

@ -171,7 +171,6 @@ lightning-window:
lightning-links:
./run-3 \
64,lightning_links. \
lightning-client 7500 40 172 4 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-client 7500 40 172 6 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-client 7500 40 172 8 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-client 7500 40 172 10 fast_count=3!tick_tock=1!measlat=1!window=2000, \
@ -179,13 +178,13 @@ lightning-links:
lightning-client 7500 40 172 14 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-client 7500 40 172 16 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-client 7500 40 172 20 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-client 7500 40 172 6 fast_count=3!tick_tock=0!measlat=1!window=2000, \
lightning-client 7500 40 172 8 fast_count=3!tick_tock=0!measlat=1!window=2000, \
lightning-client 7500 40 172 10 fast_count=3!tick_tock=0!measlat=1!window=2000, \
lightning-client 7500 40 172 12 fast_count=3!tick_tock=0!measlat=1!window=2000, \
lightning-client 7500 40 172 14 fast_count=3!tick_tock=0!measlat=1!window=2000, \
lightning-client 7500 40 172 16 fast_count=3!tick_tock=0!measlat=1!window=2000, \
lightning-client 7500 40 172 20 fast_count=3!tick_tock=0!measlat=1!window=2000. \
lightning-server 7500 40 172 4 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-server 7500 40 172 6 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-server 7500 40 172 8 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-server 7500 40 172 10 fast_count=3!tick_tock=1!measlat=1!window=2000, \
@ -193,6 +192,7 @@ lightning-links:
lightning-server 7500 40 172 14 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-server 7500 40 172 16 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-server 7500 40 172 20 fast_count=3!tick_tock=1!measlat=1!window=2000, \
lightning-server 7500 40 172 6 fast_count=3!tick_tock=0!measlat=1!window=2000, \
lightning-server 7500 40 172 8 fast_count=3!tick_tock=0!measlat=1!window=2000, \
lightning-server 7500 40 172 10 fast_count=3!tick_tock=0!measlat=1!window=2000, \
lightning-server 7500 40 172 12 fast_count=3!tick_tock=0!measlat=1!window=2000, \