diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-08-13 18:42:53 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-08-13 18:42:53 +0200 |
| commit | 694dc9c80887c143a546b7988399a38e452d4bb6 (patch) | |
| tree | ed4028a2113cdf8e9dcd6774d8aed21082ddd6f2 /bench.py | |
| parent | c53b7c76e745430b4a7a9c787f2b88eb3fe4d9f0 (diff) | |
| download | allocbench-694dc9c80887c143a546b7988399a38e452d4bb6.tar.gz allocbench-694dc9c80887c143a546b7988399a38e452d4bb6.zip | |
add basic analyse to mysql
Diffstat (limited to 'bench.py')
| -rwxr-xr-x | bench.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2,6 +2,8 @@ import argparse +import common_targets + from falsesharing import falsesharing from loop import loop # from bench_conprod import conprod @@ -14,6 +16,7 @@ parser.add_argument("-r", "--runs", help="how often the benchmarks run", default parser.add_argument("-v", "--verbose", help="more output", action='store_true') parser.add_argument("-b", "--benchmarks", help="benchmarks to run", nargs='+') parser.add_argument("-ns", "--nosum", help="don't produce plots", action='store_true') +parser.add_argument("-a", "--analyse", help="collect allocation sizes", action='store_true') benchmarks = [loop, mysql, falsesharing] @@ -28,9 +31,13 @@ def main(): if args.load: bench.load() + if args.analyse: + bench.targets.update(common_targets.analyse_targets) + print("Preparing", bench.name) if not bench.prepare(): - continue + print("Preparing", bench.name, "failed!") + return print("Running", bench.name) if not bench.run(runs=args.runs, verbose=args.verbose): |
