aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--allocbench/benchmarks/falsesharing.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/allocbench/benchmarks/falsesharing.py b/allocbench/benchmarks/falsesharing.py
index 2bab852..95af12e 100644
--- a/allocbench/benchmarks/falsesharing.py
+++ b/allocbench/benchmarks/falsesharing.py
@@ -47,7 +47,7 @@ class BenchmarkFalsesharing(Benchmark):
super().__init__(name)
@staticmethod
- def process_output(result, stdout, stderr, allocator, perm): # pylint: disable=too-many-arguments, unused-argument
+ def process_output(result, stdout, stderr, allocator, perm): # pylint: disable=too-many-arguments, unused-argument
result["time"] = TIME_RE.match(stdout).group("time")
def summary(self):
@@ -66,9 +66,9 @@ class BenchmarkFalsesharing(Benchmark):
[sequential_perm][i]["time"])
measure["speedup"] = sequential_time / float(
measure["time"])
- measure["l1chache_misses"] = eval(
- "({L1-dcache-load-misses}/{L1-dcache-loads})*100".
- format(**measure))
+ measure["l1chache_misses"] = (
+ measure['L1-dcache-load-misses'] /
+ measures['L1-dcache-loads']) * 100
# delete and recalculate stats
del self.results["stats"]