aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/larson.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-11 14:22:07 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-11 14:25:55 +0100
commit5d6a470ce0c7d334205293de9b596a5ea4eb2e8c (patch)
treefaaff064ca49524167e2f1933a055ee816280946 /src/benchmarks/larson.py
parent60b860ce3619d5f165bf8eda6ad596d5d458d1e2 (diff)
downloadallocbench-5d6a470ce0c7d334205293de9b596a5ea4eb2e8c.tar.gz
allocbench-5d6a470ce0c7d334205293de9b596a5ea4eb2e8c.zip
cleanup plot code
* use str.format instead of eval for plot labels * use meaningful variable names * add license header * add some doc strings
Diffstat (limited to 'src/benchmarks/larson.py')
-rw-r--r--src/benchmarks/larson.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/benchmarks/larson.py b/src/benchmarks/larson.py
index 8fce9ed..5f153ea 100644
--- a/src/benchmarks/larson.py
+++ b/src/benchmarks/larson.py
@@ -83,15 +83,15 @@ class BenchmarkLarson(Benchmark):
# Plot threads->throughput and maxsize->throughput
plt.plot_fixed_arg(self,
"{throughput}/1000000",
- ylabel="'MOPS/s'",
- title="'Larson: ' + arg + ' ' + str(arg_value)",
+ ylabel="MOPS/s",
+ title="Larson: {arg} {arg_value}",
filepostfix="throughput")
plt.plot_fixed_arg(
self,
"({L1-dcache-load-misses}/{L1-dcache-loads})*100",
- ylabel="'l1 cache misses in %'",
- title="'Larson cache misses: ' + arg + ' ' + str(arg_value)",
+ ylabel="l1 cache misses in %",
+ title="Larson cache misses: {arg} {arg_value}",
filepostfix="cachemisses")