diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-04-29 17:12:41 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-04-29 17:12:41 +0200 |
| commit | cdfd77af6e6ca5f4352d42573a33d51c09eba5b3 (patch) | |
| tree | 020144ec4498eef017db813be3dc6e39b6830c8c /bench.py | |
| parent | 01a013838d217f49efd772f4a5b54e35710e9236 (diff) | |
| download | allocbench-cdfd77af6e6ca5f4352d42573a33d51c09eba5b3.tar.gz allocbench-cdfd77af6e6ca5f4352d42573a33d51c09eba5b3.zip | |
move list of available benchmarks to src.globalvars.benchmarks
fix analyse
Diffstat (limited to 'bench.py')
| -rwxr-xr-x | bench.py | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -14,10 +14,6 @@ import src.globalvars from src.util import * -bench_dir = "src/benchmarks" -benchmarks = [e[:-3] for e in os.listdir(bench_dir) - if e[-3:] == ".py" and e != "__init__.py"] - parser = argparse.ArgumentParser(description="benchmark memory allocators") parser.add_argument("-ds, --dont-save", action='store_true', dest="dont_save", help="don't save benchmark results in RESULTDIR") @@ -141,7 +137,7 @@ def main(): # TODO load all results at once cwd = os.getcwd() - for bench in benchmarks: + for bench in src.globalvars.benchmarks: if args.benchmarks and not bench in args.benchmarks: continue @@ -170,7 +166,7 @@ def main(): old_allocs = bench.allocators # use malt as allocator - src.globalvars.allocators = {"malt": {"cmd_prefix" : malt_cmd, + bench.allocators = {"malt": {"cmd_prefix" : malt_cmd, "binary_suffix" : "", "LD_PRELOAD" : ""}} try: @@ -189,6 +185,8 @@ def main(): else: print_error("malt not found. Skipping analyse.") + if args.runs > 1: + print_status("Running", bench.name, "...") bench.run(runs=args.runs) if need_resultdir: |
