aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-08-22 19:34:03 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-22 20:30:06 +0200
commit57afdea435e2fb22306d038f52f39852a74c7bdd (patch)
treed7ce3e43a3a7ea1ca3e0b0584ac00b45c76736e0
parentb260a2f2ccd8e6b81085f132849c8df41488af49 (diff)
downloadallocbench-57afdea435e2fb22306d038f52f39852a74c7bdd.tar.gz
allocbench-57afdea435e2fb22306d038f52f39852a74c7bdd.zip
remove duplicate check if we really should run the benchmark
-rwxr-xr-xbench.py4
-rw-r--r--src/benchmark.py5
2 files changed, 3 insertions, 6 deletions
diff --git a/bench.py b/bench.py
index 6360db5..d27200e 100755
--- a/bench.py
+++ b/bench.py
@@ -246,9 +246,9 @@ def main():
else:
print_error("malt not found. Skipping analyse.")
- if args.runs > 1:
+ if args.runs > 0:
print_status("Running", bench.name, "...")
- bench.run(runs=args.runs)
+ bench.run(runs=args.runs)
if need_resultdir:
print_info2("Changing cwd to:", resdir)
diff --git a/src/benchmark.py b/src/benchmark.py
index 890d414..3174416 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -258,10 +258,7 @@ class Benchmark (object):
for server in self.servers:
Benchmark.terminate_subprocess(server)
- def run(self, runs=5):
- if runs < 1:
- return
-
+ def run(self, runs=3):
# check if perf is allowed on this system
if self.measure_cmd == self.defaults["measure_cmd"]:
if Benchmark.perf_allowed is None: