aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/plot-benchmarks.py
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-01-26 22:52:46 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2026-01-26 22:56:24 +0100
commitdff3a040637f2985b5b5e369148a993183964096 (patch)
treefddce7b9296b77796177e7677a386b6719ae79ea /benchmarks/plot-benchmarks.py
parent233169d9ab5fb8a796d91a3694f8a522fa54d194 (diff)
parentf6108ba0fe3b3fd32288a50a0fde86745c6d671e (diff)
downloadnissy-core-dff3a040637f2985b5b5e369148a993183964096.tar.gz
nissy-core-dff3a040637f2985b5b5e369148a993183964096.zip
Merge branch 'master' of tronto.net:nissy-core
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