|
@ -58,7 +58,7 @@ def process_file_to_dataset(file_path, src_node, dst_node): |
|
|
run_idx = run_idx + 1 |
|
|
run_idx = run_idx + 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def plot_bar(table,title,node_config): |
|
|
|
|
|
|
|
|
def plot_bar(table,node_config): |
|
|
plt.figure(figsize=(2, 3)) |
|
|
plt.figure(figsize=(2, 3)) |
|
|
|
|
|
|
|
|
sns.barplot(x=x_label, y=y_label, data=table, palette="mako", errorbar="sd") |
|
|
sns.barplot(x=x_label, y=y_label, data=table, palette="mako", errorbar="sd") |
|
@ -72,7 +72,7 @@ def plot_bar(table,title,node_config): |
|
|
# loops over all possible configuration combinations and calls |
|
|
# loops over all possible configuration combinations and calls |
|
|
# process_file_to_dataset for them in order to build a dataframe |
|
|
# process_file_to_dataset for them in order to build a dataframe |
|
|
# which is then displayed and saved |
|
|
# which is then displayed and saved |
|
|
def main(node_config,title): |
|
|
|
|
|
|
|
|
def main(node_config): |
|
|
src_node = 0 |
|
|
src_node = 0 |
|
|
for dst_node in {8,11,12,15}: |
|
|
for dst_node in {8,11,12,15}: |
|
|
file = os.path.join(result_path, f"copy-n{src_node}ton{dst_node}-1gib-{node_config}.json") |
|
|
file = os.path.join(result_path, f"copy-n{src_node}ton{dst_node}-1gib-{node_config}.json") |
|
@ -83,12 +83,13 @@ def main(node_config,title): |
|
|
data.clear() |
|
|
data.clear() |
|
|
df.set_index(index, inplace=True) |
|
|
df.set_index(index, inplace=True) |
|
|
|
|
|
|
|
|
plot_bar(df, title, node_config) |
|
|
|
|
|
|
|
|
plot_bar(df, node_config) |
|
|
|
|
|
|
|
|
return df |
|
|
return df |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
if __name__ == "__main__": |
|
|
dall = main("allnodes", title_allnodes) |
|
|
|
|
|
dsmart = main("smart", title_smartnodes) |
|
|
|
|
|
dspp = main("pushpull", title_smartnodes) |
|
|
|
|
|
|
|
|
main("1dsa") |
|
|
|
|
|
main("2dsa") |
|
|
|
|
|
main("4dsa") |
|
|
|
|
|
main("8dsa") |