From 88bed261c2a21d88e06490092dc3f88745a3a545 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 8 Mar 2019 11:23:16 +0100 Subject: Don't print running if -r 0 is set --- src/benchmark.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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: -- cgit v1.2.3