aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/falsesharing.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-10-30 10:46:38 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-10-30 10:46:38 +0100
commit37c3d391c812aff94754c6c80bec3e61982e00a1 (patch)
treea96872c7508ac2cf598a8f6796e2b764e279333f /src/benchmarks/falsesharing.py
parenta0bac24b506d158f9ae09e0532a07546ead4d0ce (diff)
downloadallocbench-37c3d391c812aff94754c6c80bec3e61982e00a1.tar.gz
allocbench-37c3d391c812aff94754c6c80bec3e61982e00a1.zip
introduce a global summary file extension
Diffstat (limited to 'src/benchmarks/falsesharing.py')
-rw-r--r--src/benchmarks/falsesharing.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/benchmarks/falsesharing.py b/src/benchmarks/falsesharing.py
index a9c72b5..b7222f6 100644
--- a/src/benchmarks/falsesharing.py
+++ b/src/benchmarks/falsesharing.py
@@ -23,6 +23,8 @@ import matplotlib.pyplot as plt
import numpy as np
from src.benchmark import Benchmark
+from src.globalvars import summary_file_ext
+
TIME_RE = re.compile("^Time elapsed = (?P<time>\\d*\\.\\d*) seconds.$")
@@ -77,7 +79,7 @@ class BenchmarkFalsesharing(Benchmark):
plt.xlabel("threads")
plt.ylabel("speedup")
plt.title(bench + " speedup")
- plt.savefig(self.name + "." + bench + ".png")
+ plt.savefig(f"{self.name}.{bench}.{summary_file_ext}")
plt.clf()
self.plot_fixed_arg("({L1-dcache-load-misses}/{L1-dcache-loads})*100",