aboutsummaryrefslogtreecommitdiff
path: root/src/falsesharing.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-01-22 13:01:37 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-01-22 13:01:37 +0100
commit0541f2a16333ab1b9739eb3d2a72acbc67089ffc (patch)
treeb6a918b7f4c377e2358289bbe8e55dfcfd9b8eff /src/falsesharing.py
parent2002b64449e6383e43481d06efcfafac74a7cf8e (diff)
downloadallocbench-0541f2a16333ab1b9739eb3d2a72acbc67089ffc.tar.gz
allocbench-0541f2a16333ab1b9739eb3d2a72acbc67089ffc.zip
save all results by default in results/hostname/timestamp
Diffstat (limited to 'src/falsesharing.py')
-rw-r--r--src/falsesharing.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/falsesharing.py b/src/falsesharing.py
index 1e0ef18..57acf06 100644
--- a/src/falsesharing.py
+++ b/src/falsesharing.py
@@ -29,7 +29,7 @@ class Benchmark_Falsesharing( Benchmark ):
def process_output(self, result, stdout, stderr, target, perm, verbose):
result["time"] = time_re.match(stdout).group("time")
- def summary(self, sumdir=None):
+ def summary(self):
# Speedup thrash
args = self.results["args"]
nthreads = args["threads"]
@@ -56,21 +56,19 @@ class Benchmark_Falsesharing( Benchmark ):
plt.xlabel("threads")
plt.ylabel("speedup")
plt.title(bench + " speedup" )
- plt.savefig(os.path.join(sumdir, self.name + "." + bench + ".png"))
+ plt.savefig(self.name + "." + bench + ".png")
plt.clf()
self.plot_fixed_arg("({L1-dcache-load-misses}/{L1-dcache-loads})*100",
ylabel="'l1 cache misses in %'",
title = "'cache misses: ' + arg + ' ' + str(arg_value)",
filepostfix = "l1-misses",
- sumdir=sumdir,
fixed=["bench"])
self.plot_fixed_arg("({LLC-load-misses}/{LLC-loads})*100",
ylabel="'l1 cache misses in %'",
title = "'LLC misses: ' + arg + ' ' + str(arg_value)",
filepostfix = "llc-misses",
- sumdir=sumdir,
fixed=["bench"])
falsesharing = Benchmark_Falsesharing()