|
@ -7,7 +7,8 @@ import matplotlib.pyplot as plt |
|
|
|
|
|
|
|
|
from common import calc_throughput |
|
|
from common import calc_throughput |
|
|
|
|
|
|
|
|
folder_path = "benchmark-results/" |
|
|
|
|
|
|
|
|
result_path = "benchmark-results/" |
|
|
|
|
|
output_path = "benchmark-plots/" |
|
|
|
|
|
|
|
|
runid = "Run ID" |
|
|
runid = "Run ID" |
|
|
x_label = "Destination Node" |
|
|
x_label = "Destination Node" |
|
@ -75,10 +76,10 @@ def process_file_to_dataset(file_path, src_node, dst_node): |
|
|
def plot_heatmap(table,title,node_config): |
|
|
def plot_heatmap(table,title,node_config): |
|
|
plt.figure(figsize=(8, 6)) |
|
|
plt.figure(figsize=(8, 6)) |
|
|
|
|
|
|
|
|
sns.heatmap(table, annot=True, cmap="YlGn", fmt=".0f") |
|
|
|
|
|
|
|
|
sns.heatmap(table, annot=True, cmap="rocket_r", fmt=".0f") |
|
|
|
|
|
|
|
|
plt.title(title) |
|
|
plt.title(title) |
|
|
plt.savefig(os.path.join(folder_path, f"plot-perf-{node_config}-throughput.png"), bbox_inches='tight') |
|
|
|
|
|
|
|
|
plt.savefig(os.path.join(output_path, f"plot-perf-{node_config}-throughput.png"), bbox_inches='tight') |
|
|
plt.show() |
|
|
plt.show() |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -89,7 +90,7 @@ def main(node_config,title): |
|
|
for src_node in range(16): |
|
|
for src_node in range(16): |
|
|
for dst_node in range(16): |
|
|
for dst_node in range(16): |
|
|
size = "512mib" if node_config == "allnodes" and src_node == dst_node and src_node >= 8 else "1gib" |
|
|
size = "512mib" if node_config == "allnodes" and src_node == dst_node and src_node >= 8 else "1gib" |
|
|
file = os.path.join(folder_path, f"copy-n{src_node}ton{dst_node}-{size}-{node_config}-1e.json") |
|
|
|
|
|
|
|
|
file = os.path.join(result_path, f"copy-n{src_node}ton{dst_node}-{size}-{node_config}-1e.json") |
|
|
process_file_to_dataset(file, src_node, dst_node) |
|
|
process_file_to_dataset(file, src_node, dst_node) |
|
|
|
|
|
|
|
|
df = pd.DataFrame(data) |
|
|
df = pd.DataFrame(data) |
|
|