aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/larson.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-04-07 15:54:25 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-04-07 15:54:25 +0200
commitfe26e05dfba7b6c4a3e28b2be6dc369426277790 (patch)
treee724a1264ea3e1f07f327d6d27e0c5afafa09d23 /src/benchmarks/larson.py
parent57d94cd47a4a5c187aed2245b0f213ba520f2405 (diff)
downloadallocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.tar.gz
allocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.zip
unify plotting code
Now there is only a single plot function which takes a plot type as well as some plot and figure options.
Diffstat (limited to 'src/benchmarks/larson.py')
-rw-r--r--src/benchmarks/larson.py27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/benchmarks/larson.py b/src/benchmarks/larson.py
index d2e9286..db38789 100644
--- a/src/benchmarks/larson.py
+++ b/src/benchmarks/larson.py
@@ -81,18 +81,21 @@ class BenchmarkLarson(Benchmark):
def summary(self):
# Plot threads->throughput and maxsize->throughput
- plt.plot_fixed_arg(self,
- "{throughput}/1000000",
- ylabel="MOPS/s",
- title="Larson: {arg} {arg_value}",
- file_postfix="throughput")
-
- plt.plot_fixed_arg(
- self,
- "({L1-dcache-load-misses}/{L1-dcache-loads})*100",
- ylabel="l1 cache misses in %",
- title="Larson cache misses: {arg} {arg_value}",
- file_postfix="cachemisses")
+ plt.plot(self,
+ "{throughput}/1000000",
+ fig_options={
+ 'ylabel': "MOPS/s",
+ 'title': "Larson: {arg} {arg_value}",
+ },
+ file_postfix="throughput")
+
+ plt.plot(self,
+ "({L1-dcache-load-misses}/{L1-dcache-loads})*100",
+ fig_options={
+ 'ylabel': "l1 cache misses in %",
+ 'title': "Larson cache misses: {arg} {arg_value}",
+ },
+ file_postfix="cachemisses")
larson = BenchmarkLarson()