From 680f46b2d51db66ac5028a6a8df7cdf82958bb54 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 28 Apr 2019 22:52:52 +0200 Subject: use special allocator "malt" during analyse to run the benchmark only once --- src/benchmark.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/benchmark.py b/src/benchmark.py index 4bab146..4737799 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -168,7 +168,7 @@ class Benchmark (object): if is_fixed: yield p - def run(self, runs=5, dry_run=False, cmd_prefix=""): + def run(self, runs=5): if runs < 1: return @@ -238,7 +238,6 @@ class Benchmark (object): actual_cmd = "{} {} {} {}{}".format(self.measure_cmd, t["cmd_prefix"], - cmd_prefix, binary, actual_cmd[cmd_start:]) # substitute again @@ -297,10 +296,9 @@ class Benchmark (object): if valid_result != None: valid_result = result - if not dry_run: - if not perm in self.results[alloc_name]: - self.results[alloc_name][perm] = [] - self.results[alloc_name][perm].append(result) + if not perm in self.results[alloc_name]: + self.results[alloc_name][perm] = [] + self.results[alloc_name][perm].append(result) if hasattr(self, "postallocator_hook"): self.postallocator_hook((alloc_name, t), run, -- cgit v1.2.3