From cada16a67b4a6b831ae28b6cea6372fc69bf9aa6 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 28 Dec 2019 19:44:57 +0100 Subject: readd option to summarize after benchmark run --- bench.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'bench.py') diff --git a/bench.py b/bench.py index ed5b2da..852bb72 100755 --- a/bench.py +++ b/bench.py @@ -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() -- cgit v1.2.3