aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py5
1 files 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)