aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-06-27 14:56:07 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-26 18:12:15 +0200
commitd5f45243a5990f887908d92d6cf33bb3f85cf461 (patch)
treebf294b5eb6bf84cabcba667346d2336d33270a69
parent86fb07efe8f5925faa9279e822b8e4809459e1cd (diff)
downloadallocbench-d5f45243a5990f887908d92d6cf33bb3f85cf461.tar.gz
allocbench-d5f45243a5990f887908d92d6cf33bb3f85cf461.zip
add option to exclude benchmarks
-rwxr-xr-xscripts/bench_sum.py5
1 files changed, 4 insertions, 1 deletions
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)))