|
|
@ -88,11 +88,11 @@ def plot_bar(table,title,node_config): |
|
|
|
# loops over all possible configuration combinations and calls |
|
|
|
# process_file_to_dataset for them in order to build a dataframe |
|
|
|
# which is then displayed and saved |
|
|
|
def main(node_config,title): |
|
|
|
def main(node_config,title,ext): |
|
|
|
src_node = 0 |
|
|
|
for dst_node in {8,11,12,15}: |
|
|
|
size = "512mib" if node_config == "allnodes" and src_node == dst_node and src_node >= 8 else "1gib" |
|
|
|
file = os.path.join(result_path, f"copy-n{src_node}ton{dst_node}-{size}-{node_config}-cpu-1e.json") |
|
|
|
file = os.path.join(result_path, f"copy-n{src_node}ton{dst_node}-{size}-{node_config}-cpu-{ext}.json") |
|
|
|
process_file_to_dataset(file, src_node, dst_node) |
|
|
|
|
|
|
|
df = pd.DataFrame(data) |
|
|
@ -100,11 +100,12 @@ def main(node_config,title): |
|
|
|
data.clear() |
|
|
|
df.set_index(index, inplace=True) |
|
|
|
|
|
|
|
if ext == "brute": node_config = ext |
|
|
|
plot_bar(df, title, node_config) |
|
|
|
|
|
|
|
return df |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
dall = main("allnodes", title_allnodes) |
|
|
|
dsmart = main("smart", title_smartnodes) |
|
|
|
dall = main("allnodes", title_allnodes, "1e") |
|
|
|
dbrt = main("allnodes", title_allnodes, "brute") |