From d5f45243a5990f887908d92d6cf33bb3f85cf461 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 27 Jun 2019 14:56:07 +0200 Subject: add option to exclude benchmarks --- scripts/bench_sum.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/bench_sum.py b/scripts/bench_sum.py index e7f5740..d590ac8 100755 --- a/scripts/bench_sum.py +++ b/scripts/bench_sum.py @@ -64,6 +64,7 @@ sets = new_sets parser = argparse.ArgumentParser(description="Summarize allocbench results in allocator sets") parser.add_argument("results", help="path to results", type=str) parser.add_argument("-b", "--benchmarks", help="benchmarks to summarize", nargs='+') +parser.add_argument("-x", "--exclude-benchmarks", help="benchmarks to exclude", nargs='+') parser.add_argument("-t", "--threads", help="Summarize using multiple threads", action="store_true") def main(): @@ -75,13 +76,15 @@ def main(): for b in benchmarks: if args.benchmarks and not b in args.benchmarks: continue + if args.exclude_benchmarks and b in args.exclude_benchmarks: + continue + bench = eval("importlib.import_module('src.benchmarks.{0}').{0}".format(b)) try: bench.load() except FileNotFoundError as e: print("No data available") continue - if args.threads: active_threads.append(_thread.start_new_thread(bench_sum, (bench, sets))) -- cgit v1.2.3