From 9e05ba8bb59c9c67cec5feddac1852d690fb7418 Mon Sep 17 00:00:00 2001 From: Florian Fischer <florian.fl.fischer@fau.de> Date: Mon, 24 Jun 2019 20:15:59 +0200 Subject: [PATCH] add option to exclude benchmarks --- bench.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bench.py b/bench.py index ce21fe3..a3b73d6 100755 --- a/bench.py +++ b/bench.py @@ -24,6 +24,7 @@ parser.add_argument("-v", "--verbose", help="more output", action='count') parser.add_argument("-vdebug", "--verbose-debug", help="debug output", action='store_true', dest="verbose_debug") parser.add_argument("-b", "--benchmarks", help="benchmarks to run", nargs='+') +parser.add_argument("-xb", "--exclude-benchmarks", help="explicitly excluded benchmarks", nargs='+') parser.add_argument("-a", "--allocators", help="allocators to test", type=str, nargs='+') parser.add_argument("-ns", "--nosum", help="don't produce plots", action='store_true') parser.add_argument("-rd", "--resultdir", help="directory where all results go", type=str) @@ -169,6 +170,9 @@ def main(): for bench in src.globalvars.benchmarks: if args.benchmarks and bench not in args.benchmarks: continue + + if args.exclude_benchmarks and bench in args.exclude_benchmarks: + continue if args.analyse or not args.nosum: bench_res_dir = os.path.join(resdir, bench) -- GitLab