aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/larson.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-20 12:19:44 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-20 12:19:44 +0100
commit9c9dd922379312fe744307a71ad1b8715098e18b (patch)
tree22feb63adec67c93bbe1e3283dee8510a627896f /src/benchmarks/larson.py
parent42f029418a28e98788c95098837dfb45ea2bfffc (diff)
parent40860ce5b8134618dad6457049d533aa211b0139 (diff)
downloadallocbench-9c9dd922379312fe744307a71ad1b8715098e18b.tar.gz
allocbench-9c9dd922379312fe744307a71ad1b8715098e18b.zip
Merge branch 'pgfplots'
Diffstat (limited to 'src/benchmarks/larson.py')
-rw-r--r--src/benchmarks/larson.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/benchmarks/larson.py b/src/benchmarks/larson.py
index 6e55fbe..5f153ea 100644
--- a/src/benchmarks/larson.py
+++ b/src/benchmarks/larson.py
@@ -48,6 +48,7 @@ false sharing because it uses multiple threads, which pass memory around.
import re
from src.benchmark import Benchmark
+import src.plots as plt
THROUGHPUT_RE = re.compile(
"^Throughput =\\s*(?P<throughput>\\d+) operations per second.$")
@@ -80,15 +81,17 @@ class BenchmarkLarson(Benchmark):
def summary(self):
# Plot threads->throughput and maxsize->throughput
- self.plot_fixed_arg("{throughput}/1000000",
- ylabel="'MOPS/s'",
- title="'Larson: ' + arg + ' ' + str(arg_value)",
- filepostfix="throughput")
-
- self.plot_fixed_arg(
+ plt.plot_fixed_arg(self,
+ "{throughput}/1000000",
+ 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")