aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2018-08-24 22:00:03 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2018-08-24 22:03:29 +0200
commitcb79bac50ca1da1f0f02455bd0e564578ab9ef05 (patch)
treea2212ea2c2fb910e45fcedd90d0ee91ef123d383 /bench.py
parent51ba31ed4a2548fb12d9e1e2f2115213a0aaa1f4 (diff)
downloadallocbench-cb79bac50ca1da1f0f02455bd0e564578ab9ef05.tar.gz
allocbench-cb79bac50ca1da1f0f02455bd0e564578ab9ef05.zip
intruduce new way of handling analyse and cleanup mysql
chattymalloc writes now to chattymalloc.data
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/bench.py b/bench.py
index d47c6b3..570258a 100755
--- a/bench.py
+++ b/bench.py
@@ -36,15 +36,16 @@ def main():
if args.load:
bench.load()
- if args.analyse and bench.name == "mysql":
- bench.targets.update(common_targets.analyse_targets)
-
- print("Preparing", bench.name)
+ print("Preparing", bench.name, "...")
if not bench.prepare():
print("Preparing", bench.name, "failed!")
return
- print("Running", bench.name)
+ if args.analyse and hasattr(bench, "analyse") and callable(bench.analyse):
+ print("Analysing", bench.name, "...")
+ bench.analyse(verbose=args.verbose)
+
+ print("Running", bench.name, "...")
if not bench.run(runs=args.runs, verbose=args.verbose):
continue
@@ -52,11 +53,11 @@ def main():
bench.save()
if not args.nosum:
- print("Summarizing", bench.name)
+ print("Summarizing", bench.name, "...")
bench.summary(args.summarydir)
if hasattr(bench, "cleanup"):
- print("Cleaning after", bench.name)
+ print("Cleaning up", bench.name, "...")
bench.cleanup()
if __name__ == "__main__":