diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-12-28 19:44:57 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-12-28 19:44:57 +0100 |
| commit | cada16a67b4a6b831ae28b6cea6372fc69bf9aa6 (patch) | |
| tree | 229c52c074ea3cbccab5a834cba407088c92657b /bench.py | |
| parent | 31a14856e7df09a533c594f52b39904ae9ee9bbc (diff) | |
| download | allocbench-cada16a67b4a6b831ae28b6cea6372fc69bf9aa6.tar.gz allocbench-cada16a67b4a6b831ae28b6cea6372fc69bf9aa6.zip | |
readd option to summarize after benchmark run
Diffstat (limited to 'bench.py')
| -rwxr-xr-x | bench.py | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -34,6 +34,8 @@ from src.util import print_status, print_warn, print_error from src.util import print_info, print_info2, print_debug from src.util import print_license_and_exit +from summarize import summarize + def epilog(): """Run tasks on exit""" @@ -81,10 +83,7 @@ def main(): help="how often the benchmarks run", default=3, type=int) - parser.add_argument("-v", - "--verbose", - help="more output", - action='count') + parser.add_argument("-v", "--verbose", help="more output", action='count') parser.add_argument("-b", "--benchmarks", help="benchmarks to run", @@ -103,6 +102,10 @@ def main(): "--resultdir", help="directory where all results go", type=str) + parser.add_argument("-s", + "--summarize", + help="create a summary of this run", + action='store_true') parser.add_argument("--license", help="print license info and exit", action='store_true') @@ -256,6 +259,9 @@ def main(): print_status("Cleaning up", bench.name, "...") bench.cleanup() + if args.summarize: + summarize() + if __name__ == "__main__": main() |
