diff --git a/Tests/bench_cffi_access.py b/Tests/bench_cffi_access.py index c4ab3bdcc..1d66b6636 100644 --- a/Tests/bench_cffi_access.py +++ b/Tests/bench_cffi_access.py @@ -32,9 +32,7 @@ def timer(func, label, *args) -> None: break endtime = time.time() print( - "{}: completed {} iterations in {:.4f}s, {:.6f}s per iteration".format( - label, x + 1, endtime - starttime, (endtime - starttime) / (x + 1.0) - ) + f"{label}: completed {x + 1} iterations in {endtime - starttime:.4f}s, {(endtime - starttime) / (x + 1.0):.6f}s per iteration" )