aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2018-07-25 11:18:47 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2018-07-25 11:18:47 +0200
commit548572389e88a98d1bb8954b5c75bd46e579240b (patch)
tree53bdf730551238ba78f8946fd5f1601f69fe1e6a
parent574f93091ad7082e2695ce364f6f7726990e1e02 (diff)
downloadallocbench-548572389e88a98d1bb8954b5c75bd46e579240b.tar.gz
allocbench-548572389e88a98d1bb8954b5c75bd46e579240b.zip
add nosummary option
-rwxr-xr-xbench.py6
1 files 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)