diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-04-28 22:52:52 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-04-28 22:52:52 +0200 |
| commit | 680f46b2d51db66ac5028a6a8df7cdf82958bb54 (patch) | |
| tree | c9daf47a104e7fb87dccf8a88ece7166c4cc5ef2 /src/benchmark.py | |
| parent | 77b2d1dd6c8dc6e6d3d79f096f417c293bfc4830 (diff) | |
| download | allocbench-680f46b2d51db66ac5028a6a8df7cdf82958bb54.tar.gz allocbench-680f46b2d51db66ac5028a6a8df7cdf82958bb54.zip | |
use special allocator "malt" during analyse to run the benchmark only once
Diffstat (limited to 'src/benchmark.py')
| -rw-r--r-- | src/benchmark.py | 10 |
1 files changed, 4 insertions, 6 deletions
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, |
