diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-11 18:03:34 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-11 19:08:13 +0200 |
| commit | 558bed67565110bb01dc56ef135b86c113b8b32a (patch) | |
| tree | 3657df330cde2fdb14dc00a5b117e16ef4957111 /src/benchmarks/dj_trace.py | |
| parent | 84374b4b4e41c4bb7896092c10098b5e6b5f68c1 (diff) | |
| download | allocbench-558bed67565110bb01dc56ef135b86c113b8b32a.tar.gz allocbench-558bed67565110bb01dc56ef135b86c113b8b32a.zip | |
don't exit if we fail to prepare a benchmark
benchmark.prepare should raise an Exception if it encounters an
unrecoverable, intolerable error.
Diffstat (limited to 'src/benchmarks/dj_trace.py')
| -rw-r--r-- | src/benchmarks/dj_trace.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/benchmarks/dj_trace.py b/src/benchmarks/dj_trace.py index e74df64..a4433ae 100644 --- a/src/benchmarks/dj_trace.py +++ b/src/benchmarks/dj_trace.py @@ -69,6 +69,7 @@ class BenchmarkDJTrace(Benchmark): "qemu-win7", "proprietary-1", "proprietary-2"]} + self.results = {"389-ds-2": { "malloc": 170500018, "calloc": 161787184, "realloc": 404134, "free": 314856324, @@ -112,7 +113,7 @@ class BenchmarkDJTrace(Benchmark): if not os.path.isfile(workload_archive): choice = input("Download missing workloads (367M / ~6GB unpacked) [Y/n] ") if not choice in ['', 'Y', 'y']: - return False + return url = f"https://www4.cs.fau.de/~flow/allocbench/{workload_archive}" urlretrieve(url, workload_archive, download_reporthook) @@ -126,10 +127,8 @@ class BenchmarkDJTrace(Benchmark): if proc.returncode == 0: os.remove(workload_archive) - self.args["workload"] = os.listdir(workload_) - - return True - + for workload in os.listdir(workload_dir): + self.args["workload"].append(os.path.splitext(workload)[0]) @staticmethod def process_output(result, stdout, stderr, allocator, perm): |
