Skip to content

Commit

Permalink
update benchmarks with 0.10.1
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Apr 4, 2023
1 parent dcc63af commit b40fae4
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions benchmarks/benchmark_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class OperationType(IntEnum):
BGR_NUMPY = 1


VERSIONS = ["0.5.1", "0.6.1", "0.7.2", "0.8.0", "0.9.3", "0.10.0"]
VERSIONS = ["0.5.1", "0.6.1", "0.7.2", "0.8.0", "0.9.3", "0.10.1"]
N_ITER_SMALL = 100
N_ITER_LARGE = 50

Expand Down Expand Up @@ -62,4 +62,4 @@ def measure_decode(image, n_iterations, operation_type: int):
_os = "Linux"
plt.xlabel(f"{_os} - {get_cpu_info()['brand_raw']}")
ax.legend()
plt.savefig(f"results_decode_{_os}.png")
plt.savefig(f"results_decode_{_os}.png", dpi=200)
4 changes: 2 additions & 2 deletions benchmarks/benchmark_encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import matplotlib.pyplot as plt
from cpuinfo import get_cpu_info

VERSIONS = ["0.5.1", "0.6.1", "0.7.2", "0.8.0", "0.9.3", "0.10.0"]
VERSIONS = ["0.5.1", "0.6.1", "0.7.2", "0.8.0", "0.9.3", "0.10.1"]
N_ITER = 30


Expand Down Expand Up @@ -47,4 +47,4 @@ def measure_encode(image, n_iterations):
_os = "Linux"
plt.xlabel(f"{_os} - {get_cpu_info()['brand_raw']}")
ax.legend()
plt.savefig(f"results_encode_{_os}.png")
plt.savefig(f"results_encode_{_os}.png", dpi=200)
2 changes: 1 addition & 1 deletion benchmarks/measure_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
im.load()
elif int(sys.argv[3]) == BGR_NUMPY:
for i in range(int(sys.argv[1])):
if pillow_heif.__version__ in ("0.10.0",):
if pillow_heif.__version__.startswith("0.1"):
im = pillow_heif.open_heif(sys.argv[2], bgr_mode=True, convert_hdr_to_8bit=False)
else:
im = pillow_heif.open_heif(sys.argv[2], convert_hdr_to_8bit=False)
Expand Down
Binary file modified benchmarks/results_decode_Linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benchmarks/results_decode_Windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benchmarks/results_decode_macOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benchmarks/results_encode_Linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benchmarks/results_encode_Windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benchmarks/results_encode_macOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b40fae4

Please sign in to comment.