diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-05-08 18:49:08 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-06-02 11:18:47 +0200 |
| commit | 85e408352b4ce2d1b5dd93e551e10dd27a225fcf (patch) | |
| tree | 0eb5c251d6b43fc30f85d70a8a4aaf6ee17ac5d4 | |
| parent | 1d2010aeb747f1104bcb94f3cfddbd05c1113d99 (diff) | |
| download | allocbench-85e408352b4ce2d1b5dd93e551e10dd27a225fcf.tar.gz allocbench-85e408352b4ce2d1b5dd93e551e10dd27a225fcf.zip | |
falsesharing.py: remove useless eval
| -rw-r--r-- | allocbench/benchmarks/falsesharing.py | 8 |
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"] |
