Browse Source

properly set the titles of the graphs and add parameter so they are not cut off

master
Constantin Fürst 1 year ago
parent
commit
1405ef38fe
  1. 4
      benchmarks/benchmark-plotters/plot-cost-mtsubmit.py
  2. 4
      benchmarks/benchmark-plotters/plot-perf-enginelocation.py
  3. 5
      benchmarks/benchmark-plotters/plot-perf-submitmethod.py
  4. BIN
      benchmarks/benchmark-results/cross-copy-bench/plot-perf-enginelocation.png
  5. BIN
      benchmarks/benchmark-results/mtsubmit-bench/plot-cost-mtsubmit.png
  6. BIN
      benchmarks/benchmark-results/submit-bench/plot-perf-submitmethod.png

4
benchmarks/benchmark-plotters/plot-cost-mtsubmit.py

@ -12,6 +12,7 @@ thread_counts = ["1t", "2t", "4t", "8t", "12t"]
thread_counts_nice = ["1 Thread", "2 Threads", "4 Threads", "8 Threads", "12 Threads"]
engine_counts = ["1e", "4e"]
engine_counts_nice = ["1 Engine per Group", "4 Engines per Group"]
title = "Performance of Multi-Threaded Submit - Copy Operation Intra-Node on DDR with Size 1 MiB"
data = {
x_label : thread_counts_nice,
@ -70,7 +71,8 @@ def main():
dfm = pd.melt(df, id_vars=x_label, var_name=var_label, value_name=y_label)
sns.catplot(x=x_label, y=y_label, hue=var_label, data=dfm, kind='bar', height=5, aspect=1, palette="viridis")
plt.savefig(os.path.join(folder_path, "plot-cost-mtsubmit.png"))
plt.title(title)
plt.savefig(os.path.join(folder_path, "plot-cost-mtsubmit.png"), bbox_inches='tight')
plt.show()
if __name__ == "__main__":

4
benchmarks/benchmark-plotters/plot-perf-enginelocation.py

@ -12,6 +12,7 @@ types = ["intersock-n0ton4", "internode-n0ton1"]
types_nice = ["Inter-Socket Copy", "Inter-Node Copy"]
copy_methods = ["dstcopy", "srccopy", "xcopy"]
copy_methods_nice = [ "Engine on DST-Node", "Engine on SRC-Node", "Cross-Copy / Both Engines" ]
title = "Performance of Engine Location - Copy Operation on DDR with Size 1 MiB"
data = {
x_label : types_nice,
@ -73,7 +74,8 @@ def main():
dfm = pd.melt(df, id_vars=x_label, var_name=var_label, value_name=y_label)
sns.catplot(x=x_label, y=y_label, hue=var_label, data=dfm, kind='bar', height=5, aspect=1, palette="viridis")
plt.savefig(os.path.join(folder_path, "plot-perf-enginelocation.png"))
plt.title(title)
plt.savefig(os.path.join(folder_path, "plot-perf-enginelocation.png"), bbox_inches='tight')
plt.show()
if __name__ == "__main__":

5
benchmarks/benchmark-plotters/plot-perf-submitmethod.py

@ -13,6 +13,7 @@ sizes = ["1kib", "4kib", "1mib", "1gib"]
sizes_nice = ["1 KiB", "4 KiB", "1 MiB", "1 GiB"]
types = ["bs10", "bs50", "ms10", "ms50", "ssaw"]
types_nice = ["Batch, Size 10", "Batch, Size 50", "Multi-Submit, Count 10", "Multi Submit, Count 50", "Single Submit"]
title = "Performance of Submission Methods - Copy Operation tested Intra-Node on DDR"
data = {
x_label : sizes_nice,
@ -97,8 +98,8 @@ def main():
print(dfm)
sns.catplot(x=x_label, y=y_label, hue=var_label, data=dfm, kind='bar', height=5, aspect=1, palette="viridis", errorbar=("ci", 100))
plt.title("Performance of Submission Methods - Copy Operatione tested Intra-Node on DDR")
plt.savefig(os.path.join(folder_path, "plot-perf-submitmethod.png"))
plt.title(title)
plt.savefig(os.path.join(folder_path, "plot-perf-submitmethod.png"), bbox_inches='tight')
plt.show()
if __name__ == "__main__":

BIN
benchmarks/benchmark-results/cross-copy-bench/plot-perf-enginelocation.png

Before

Width: 733  |  Height: 500  |  Size: 25 KiB

After

Width: 760  |  Height: 510  |  Size: 34 KiB

BIN
benchmarks/benchmark-results/mtsubmit-bench/plot-cost-mtsubmit.png

Before

Width: 692  |  Height: 500  |  Size: 21 KiB

After

Width: 791  |  Height: 510  |  Size: 31 KiB

BIN
benchmarks/benchmark-results/submit-bench/plot-perf-submitmethod.png

Before

Width: 710  |  Height: 500  |  Size: 34 KiB

After

Width: 765  |  Height: 510  |  Size: 38 KiB

Loading…
Cancel
Save