aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench.py b/bench.py
index d1332e8..ed5a43a 100755
--- a/bench.py
+++ b/bench.py
@@ -192,7 +192,7 @@ def main():
os.makedirs(bench_res_dir, exist_ok=True)
try:
- bench = eval("importlib.import_module('src.benchmarks.{0}').{0}".format(bench))
+ bench = eval(f"importlib.import_module('src.benchmarks.{bench}').{bench}")
if args.load:
bench.load(path=args.load)