From 548572389e88a98d1bb8954b5c75bd46e579240b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 25 Jul 2018 11:18:47 +0200 Subject: add nosummary option --- bench.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bench.py b/bench.py index 4ee0232..8c7ed51 100755 --- a/bench.py +++ b/bench.py @@ -13,6 +13,7 @@ parser.add_argument("-l", "--load", help="load benchmark results from disk", act parser.add_argument("-r", "--runs", help="how often the benchmarks run", default=3, type=int) parser.add_argument("-v", "--verbose", help="more output", action='store_true') parser.add_argument("-b", "--benchmarks", help="benchmarks to run", nargs='+') +parser.add_argument("-ns", "--nosum", help="don't produce plots", action='store_true') benchmarks = [loop, mysql, falsesharing] @@ -38,8 +39,9 @@ def main(): if args.save: bench.save() - print("Summarizing", bench.name) - bench.summary() + if args.nosum: + print("Summarizing", bench.name) + bench.summary() if hasattr(bench, "cleanup"): print("Cleaning after", bench.name) -- cgit v1.2.3