aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/larson.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-11 13:23:55 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-11 13:23:55 +0100
commit60b860ce3619d5f165bf8eda6ad596d5d458d1e2 (patch)
tree595626c7efb43dedbe30753357fa64383056357f /src/benchmarks/larson.py
parent9e2d7eb1cb952b398bd7363ab95ea9f1d4598ab1 (diff)
downloadallocbench-60b860ce3619d5f165bf8eda6ad596d5d458d1e2.tar.gz
allocbench-60b860ce3619d5f165bf8eda6ad596d5d458d1e2.zip
move plotting code from src.benchmark to src.plots
Diffstat (limited to 'src/benchmarks/larson.py')
-rw-r--r--src/benchmarks/larson.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/benchmarks/larson.py b/src/benchmarks/larson.py
index 6e55fbe..8fce9ed 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,12 +81,14 @@ 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 + ' ' + str(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)",