aboutsummaryrefslogtreecommitdiff
path: root/src/falsesharing.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-02-08 13:31:11 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-02-08 13:31:11 +0100
commitf2327ada5590f40137416f301762cd3c11ab36b6 (patch)
tree7e49bfbb189ce34c84384a444aed13125bc6c8ff /src/falsesharing.py
parent9240e149758e6e3923151687a7830e8940567ddc (diff)
downloadallocbench-f2327ada5590f40137416f301762cd3c11ab36b6.tar.gz
allocbench-f2327ada5590f40137416f301762cd3c11ab36b6.zip
s/target/allocator/ and remove analyse feature
Use systemwide installed allocators by default
Diffstat (limited to 'src/falsesharing.py')
-rw-r--r--src/falsesharing.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/falsesharing.py b/src/falsesharing.py
index 79de436..859db03 100644
--- a/src/falsesharing.py
+++ b/src/falsesharing.py
@@ -26,31 +26,31 @@ class Benchmark_Falsesharing(Benchmark):
self.requirements = ["cache-thrash", "cache-scratch"]
super().__init__()
- def process_output(self, result, stdout, stderr, target, perm, verbose):
+ def process_output(self, result, stdout, stderr, allocator, perm, verbose):
result["time"] = time_re.match(stdout).group("time")
def summary(self):
# Speedup thrash
args = self.results["args"]
nthreads = args["threads"]
- targets = self.results["targets"]
+ allocators = self.results["allocators"]
for bench in self.results["args"]["bench"]:
- for target in targets:
+ for allocator in allocators:
y_vals = []
single_threaded_perm = self.Perm(bench=bench, threads=1)
single_threaded = np.mean([float(m["time"])
- for m in self.results[target][single_threaded_perm]])
+ for m in self.results[allocator][single_threaded_perm]])
for perm in self.iterate_args_fixed({"bench": bench}, args=args):
- d = [float(m["time"]) for m in self.results[target][perm]]
+ d = [float(m["time"]) for m in self.results[allocator][perm]]
y_vals.append(single_threaded / np.mean(d))
plt.plot(nthreads, y_vals, marker='.', linestyle='-',
- label=target, color=targets[target]["color"])
+ label=allocator, color=allocators[allocator]["color"])
plt.legend()
plt.xlabel("threads")