From 85e408352b4ce2d1b5dd93e551e10dd27a225fcf Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 8 May 2020 18:49:08 +0200 Subject: falsesharing.py: remove useless eval --- allocbench/benchmarks/falsesharing.py | 8 ++++---- 1 file 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"] -- cgit v1.2.3