-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c138de
commit 39a1efd
Showing
25 changed files
with
942 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ fi | |
--config $TESTDIR/nodes-$ID.json \ | ||
--ip ips_file \ | ||
--delta "$DELAY" \ | ||
--sleep 120 \ | ||
$CLI_TYPE & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file added
BIN
+56.6 KB
scripts/throughput-vs-latency/vary-b/RR-Tput-vs-latency-for-diff-b.pdf
Binary file not shown.
Binary file removed
BIN
-63.3 KB
scripts/throughput-vs-latency/vary-b/Tput-vs-latency-for-diff-b.pdf
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
# To add a new cell, type '# %%' | ||
# To add a new markdown cell, type '# %% [markdown]' | ||
# %% | ||
# Build a ping percentile plot | ||
|
||
import matplotlib.pyplot as plt | ||
from numpy import percentile | ||
from csv import reader | ||
import math | ||
|
||
ROOT="/run/media/haxolotl/Backup/GitRoot/libapollo-rust" | ||
|
||
|
||
# %% | ||
# Plot Tput vs Delta for f=4,8,16,32, w=40 | ||
|
||
faults = [4,8,16,32] | ||
w = 40000 | ||
|
||
new_data = {} | ||
new_data["x"] = [] | ||
new_data["y"] = [] | ||
|
||
shs_data = {} | ||
apl_data = {} | ||
|
||
from copy import deepcopy | ||
|
||
Protocol="synchs" | ||
for Faults in faults: | ||
File = f"{ROOT}/data/Jan20/c5/vary-d/F{Faults}/w{w}-{Faults}-{Protocol}-run-cleaned.csv" | ||
# print(File) | ||
shs_data[Faults] = deepcopy(new_data) | ||
with open(File) as f: | ||
rdr = reader(f) | ||
for row in rdr: | ||
delta = int(row[0]) | ||
tput = float(row[1])/1000 | ||
lat = float(row[2]) | ||
shs_data[Faults]["x"].append(delta) | ||
shs_data[Faults]["y"].append(tput) | ||
|
||
Protocol="apollo" | ||
for Faults in faults: | ||
File = f"{ROOT}/data/Jan20/c5/vary-d/F{Faults}/w{w}-{Faults}-{Protocol}-run-cleaned.csv" | ||
# print(File) | ||
apl_data[Faults] = deepcopy(new_data) | ||
with open(File) as f: | ||
rdr = reader(f) | ||
for row in rdr: | ||
delta = int(row[0]) | ||
tput = float(row[1])/1000 | ||
lat = float(row[2]) | ||
apl_data[Faults]["x"].append(delta) | ||
apl_data[Faults]["y"].append(tput) | ||
# print(data) | ||
for f in shs_data: | ||
plt.plot(shs_data[f]["x"], shs_data[f]["y"], linestyle="--", marker="*", label=f"Synchs-f{f}") | ||
for f in apl_data: | ||
plt.plot(apl_data[f]["x"], apl_data[f]["y"], linestyle="--", marker=".",label=f"Apollo-f{f}") | ||
plt.legend() | ||
plt.xlabel("Delta $\Delta$ (in ms)") | ||
plt.ylabel("Response rate (in Kops/s)") | ||
plt.savefig(f"{ROOT}/Plots/vary-d/t-vs-d.pdf", bbox_inches="tight") | ||
|
||
|
||
# %% | ||
# Plot Tput vs Delta for f=4,8,16,32, w=40 | ||
|
||
faults = [4,8,16,32] | ||
w = 40000 | ||
|
||
new_data = {} | ||
new_data["x"] = [] | ||
new_data["y"] = [] | ||
|
||
shs_data = {} | ||
apl_data = {} | ||
|
||
from copy import deepcopy | ||
|
||
Protocol="synchs" | ||
for Faults in faults: | ||
File = f"{ROOT}/data/Jan20/c5/vary-d/F{Faults}/w{w}-{Faults}-{Protocol}-run-cleaned.csv" | ||
# print(File) | ||
shs_data[Faults] = deepcopy(new_data) | ||
with open(File) as f: | ||
rdr = reader(f) | ||
for row in rdr: | ||
delta = int(row[0]) | ||
tput = float(row[1])/1000 | ||
lat = float(row[2]) | ||
shs_data[Faults]["x"].append(delta) | ||
shs_data[Faults]["y"].append(lat) | ||
|
||
Protocol="apollo" | ||
for Faults in faults: | ||
File = f"{ROOT}/data/Jan20/c5/vary-d/F{Faults}/w{w}-{Faults}-{Protocol}-run-cleaned.csv" | ||
# print(File) | ||
apl_data[Faults] = deepcopy(new_data) | ||
with open(File) as f: | ||
rdr = reader(f) | ||
for row in rdr: | ||
delta = int(row[0]) | ||
tput = float(row[1])/1000 | ||
lat = float(row[2]) | ||
apl_data[Faults]["x"].append(delta) | ||
apl_data[Faults]["y"].append(lat) | ||
# print(data) | ||
for f in shs_data: | ||
plt.plot(shs_data[f]["x"], shs_data[f]["y"], linestyle="--", marker="*", label=f"Synchs-f{f}") | ||
for f in apl_data: | ||
plt.plot(apl_data[f]["x"], apl_data[f]["y"], linestyle="--", marker=".",label=f"Apollo-f{f}") | ||
plt.legend() | ||
plt.xlabel("Delta $\Delta$ (in ms)") | ||
plt.ylabel("Response rate (in Kops/s)") | ||
plt.savefig(f"{ROOT}/Plots/vary-d/l-vs-d.pdf", bbox_inches="tight") | ||
|
||
|
Oops, something went wrong.