From 41438eea7b5292a87946a91199ca05e41205db9d Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 29 Jun 2020 12:53:42 +0200 Subject: fix cfrac, espresso and lld plots --- allocbench/benchmarks/cfrac.py | 4 ++-- allocbench/benchmarks/espresso.py | 4 ++-- allocbench/benchmarks/lld.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/allocbench/benchmarks/cfrac.py b/allocbench/benchmarks/cfrac.py index 08e3583..f1a4408 100644 --- a/allocbench/benchmarks/cfrac.py +++ b/allocbench/benchmarks/cfrac.py @@ -89,10 +89,10 @@ class BenchmarkCfrac(Benchmark): plt.plot(self, "({L1-dcache-load-misses}/{L1-dcache-loads})*100", plot_type='bar', + plot_options={'yerr': False}, fig_options={ 'ylabel': "L1 misses in %", - 'title': "Cfrac l1 cache misses", - 'yerr': False + 'title': "Cfrac l1 cache misses" }, file_postfix="l1misses") diff --git a/allocbench/benchmarks/espresso.py b/allocbench/benchmarks/espresso.py index cbe23f2..1367bb2 100644 --- a/allocbench/benchmarks/espresso.py +++ b/allocbench/benchmarks/espresso.py @@ -90,10 +90,10 @@ class BenchmarkEspresso(Benchmark): plt.plot(self, "({L1-dcache-load-misses}/{L1-dcache-loads})*100", plot_type='bar', + plot_options={'yerr': False}, fig_options={ 'ylabel': "L1 misses in %", - 'title': "Espresso l1 cache misses", - 'yerr': False + 'title': "Espresso l1 cache misses" }, file_postfix="l1misses") diff --git a/allocbench/benchmarks/lld.py b/allocbench/benchmarks/lld.py index a813d1c..f1797dc 100644 --- a/allocbench/benchmarks/lld.py +++ b/allocbench/benchmarks/lld.py @@ -276,7 +276,7 @@ class BenchmarkLld(Benchmark): label=allocator, color=allocators[allocator]["color"]) - plt.legend(loc="best") + plt.legend(loc="lower center") plt.ylabel("time in ms") plt.title(f"Runtime {perm.test}") plt.savefig(f"{self.name}.{perm.test}.runtime.{SUMMARY_FILE_EXT}") @@ -284,7 +284,7 @@ class BenchmarkLld(Benchmark): for i, allocator in enumerate(allocators): plt.bar([i], - allocbench.plots.get_y_data(self, "{VmHWH}", allocator, + allocbench.plots.get_y_data(self, "{VmHWM}", allocator, perm), yerr=allocbench.plots.get_y_data(self, "{VmHWM}", @@ -294,7 +294,7 @@ class BenchmarkLld(Benchmark): label=allocator, color=allocators[allocator]["color"]) - plt.legend(loc="best") + plt.legend(loc="lower center") plt.ylabel("Max RSS in MB") plt.title(f"Max RSS {perm.test}") plt.savefig(f"{self.name}.{perm.test}.rss.{SUMMARY_FILE_EXT}") -- cgit v1.2.3