|
@ -63,7 +63,7 @@ def load_time_mesurements(file_path): |
|
|
def process_file_to_dataset(file_path, src_node, dst_node): |
|
|
def process_file_to_dataset(file_path, src_node, dst_node): |
|
|
try: |
|
|
try: |
|
|
file_data = load_time_mesurements(file_path) |
|
|
file_data = load_time_mesurements(file_path) |
|
|
time = [file_data["total"]] |
|
|
|
|
|
|
|
|
time = file_data["combined"] |
|
|
run_idx = 0 |
|
|
run_idx = 0 |
|
|
for t in time: |
|
|
for t in time: |
|
|
data.append({ runid : run_idx, x_label : dst_node, y_label : calc_throughput(file_data["size"], t)}) |
|
|
data.append({ runid : run_idx, x_label : dst_node, y_label : calc_throughput(file_data["size"], t)}) |
|
@ -75,11 +75,11 @@ def process_file_to_dataset(file_path, src_node, dst_node): |
|
|
def plot_bar(table,title,node_config): |
|
|
def plot_bar(table,title,node_config): |
|
|
plt.figure(figsize=(8, 6)) |
|
|
plt.figure(figsize=(8, 6)) |
|
|
|
|
|
|
|
|
sns.barplot(x=x_label, y=y_label, data=table, palette="rocket", errorbar=None) |
|
|
|
|
|
|
|
|
sns.barplot(x=x_label, y=y_label, data=table, palette="rocket") |
|
|
|
|
|
|
|
|
plt.ylim(0, 100) |
|
|
plt.ylim(0, 100) |
|
|
|
|
|
|
|
|
plt.savefig(os.path.join(output_path, f"plot-perf-{node_config}-throughput-selectbarplot.pdf"), bbox_inches='tight') |
|
|
|
|
|
|
|
|
plt.savefig(os.path.join(output_path, f"plot-perf-{node_config}-throughput-selectbarplot.png"), bbox_inches='tight') |
|
|
plt.show() |
|
|
plt.show() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|