aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/plot-benchmarks.py
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/plot-benchmarks.py')
-rw-r--r--benchmarks/plot-benchmarks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/benchmarks/plot-benchmarks.py b/benchmarks/plot-benchmarks.py
index 027e0fe..1a6fc39 100644
--- a/benchmarks/plot-benchmarks.py
+++ b/benchmarks/plot-benchmarks.py
@@ -108,6 +108,7 @@ with open(benchmarks_4_threads, "w") as f:
108 f.write("Speed-up factor (higher is better).\n") 108 f.write("Speed-up factor (higher is better).\n")
109 f.write("\n") 109 f.write("\n")
110 print_factor_table(f, results_h48.h48_single_thread, results_h48.h48_4_threads) 110 print_factor_table(f, results_h48.h48_single_thread, results_h48.h48_4_threads)
111 f.write("\n")
111 f.write('<img src="img/4threadsspeedupfactor.png">\n') 112 f.write('<img src="img/4threadsspeedupfactor.png">\n')
112 f.write("\n") 113 f.write("\n")
113 f.write("</details>\n") 114 f.write("</details>\n")
@@ -123,6 +124,7 @@ with open(benchmarks_16_threads, "w") as f:
123 f.write("Speed-up factor (higher is better).\n") 124 f.write("Speed-up factor (higher is better).\n")
124 f.write("\n") 125 f.write("\n")
125 print_factor_table(f, results_h48.h48_single_thread, results_h48.h48_16_threads) 126 print_factor_table(f, results_h48.h48_single_thread, results_h48.h48_16_threads)
127 f.write("\n")
126 f.write('<img src="img/16threadsspeedupfactor.png">\n') 128 f.write('<img src="img/16threadsspeedupfactor.png">\n')
127 f.write("\n") 129 f.write("\n")
128 f.write("</details>\n") 130 f.write("</details>\n")
@@ -178,7 +180,7 @@ def plot_multithread_scatter(title, slow, fast):
178 plt.legend(loc = "right") 180 plt.legend(loc = "right")
179 filename = title.replace(" ", "").replace(",", "") + ".png" 181 filename = title.replace(" ", "").replace(",", "") + ".png"
180 plt.savefig(benchmarks_img_dir / filename, dpi=300) 182 plt.savefig(benchmarks_img_dir / filename, dpi=300)
181 plt.show() 183 #plt.show()
182 184
183plot_multithread_scatter("4 threads speedup factor", results_h48.h48_single_thread, results_h48.h48_4_threads) 185plot_multithread_scatter("4 threads speedup factor", results_h48.h48_single_thread, results_h48.h48_4_threads)
184plot_multithread_scatter("16 threads speedup factor", results_h48.h48_single_thread, results_h48.h48_16_threads) 186plot_multithread_scatter("16 threads speedup factor", results_h48.h48_single_thread, results_h48.h48_16_threads)

Generated with cgit - Back to sebastiano.tronto.net