aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-03-08 11:23:16 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-03-08 11:23:16 +0100
commit88bed261c2a21d88e06490092dc3f88745a3a545 (patch)
tree2b689684c8ae4845704890c565d012141d6a0497
parent9ebf84850b1d2c7d5501d22fe1687f2fba2caa3f (diff)
downloadallocbench-88bed261c2a21d88e06490092dc3f88745a3a545.tar.gz
allocbench-88bed261c2a21d88e06490092dc3f88745a3a545.zip
Don't print running if -r 0 is set
-rwxr-xr-xbench.py1
-rw-r--r--src/benchmark.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/bench.py b/bench.py
index f0f7810..3f183cc 100755
--- a/bench.py
+++ b/bench.py
@@ -141,7 +141,6 @@ def main():
print_error("Preparing", bench.name, "failed!")
continue
- print_status("Running", bench.name, "...")
if not bench.run(runs=args.runs):
continue
diff --git a/src/benchmark.py b/src/benchmark.py
index 658a7f8..0c7b7f6 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -165,6 +165,11 @@ class Benchmark (object):
yield p
def run(self, runs=5):
+ if runs < 1:
+ return
+
+ print_status("Running", self.name, "...")
+
# check if perf is allowed on this system
if self.measure_cmd == self.defaults["measure_cmd"]:
if Benchmark.perf_allowed == None: