From 4a735ff18724789c1c5d599b8e6a4d0b53103518 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 6 Mar 2019 12:00:16 +0100 Subject: only import benchmarks if they are used --- bench.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bench.py b/bench.py index eeff86f..6ca4a90 100755 --- a/bench.py +++ b/bench.py @@ -97,10 +97,11 @@ def main(): # TODO load all results at once for bench in benchmarks: - bench = eval("importlib.import_module('src.{0}').{0}".format(bench)) - if args.benchmarks and not bench.name in args.benchmarks: + if args.benchmarks and not bench in args.benchmarks: continue + bench = eval("importlib.import_module('src.{0}').{0}".format(bench)) + if args.load: bench.load(path=args.load) -- cgit v1.2.3