Skip to content

Commit 88ddcde

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 793bb7f commit 88ddcde

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Tests/bench_cffi_access.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ def timer(func, label, *args) -> None:
3232
break
3333
endtime = time.time()
3434
print(
35-
"{}: completed {} iterations in {:.4f}s, {:.6f}s per iteration".format(
36-
label, x + 1, endtime - starttime, (endtime - starttime) / (x + 1.0)
37-
)
35+
f"{label}: completed {x + 1} iterations in {endtime - starttime:.4f}s, {(endtime - starttime) / (x + 1.0):.6f}s per iteration"
3836
)
3937

4038

0 commit comments

Comments
 (0)