Skip to content

Commit

Permalink
Update Tests/bench_cffi_access.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
  • Loading branch information
akx and homm committed Nov 8, 2023
1 parent ab4846a commit a41f9cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tests/bench_cffi_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def test_direct():

assert caccess[(0, 0)] == access[(0, 0)]

w, h = im.size
print(f"Size: {w}x{h}")
print(f"Size: {im.width}x{im.height}")
timer(iterate_get, "PyAccess - get", im.size, access)
timer(iterate_set, "PyAccess - set", im.size, access)
timer(iterate_get, "C-api - get", im.size, caccess)
Expand Down

0 comments on commit a41f9cc

Please sign in to comment.