I/O benchmark
I/O benchmark for different image processing python libraries.
The code is inspired by the benchmark code of Alex Parinov for the albumentations library.
https://github.com/albu/albumentations/blob/master/benchmark/benchmark.py
The idea is inspired by the work of Roman Soloviov:
https://www.kaggle.com/zfturbo/benchmark-2019-speed-of-image-reading
Installation
sudo apt install libturbojpeg libvips-dev
You can use pip to install imread_benchmark:
pip install imread_benchmark
If you want to get the latest version of the code before it is released on PyPI you can install the library from GitHub:
pip install -U git+https://github.com/ternaus/imread_benchmark
To calculate the I/O speed of your SSD/HDD in Linux
sudo apt-get install hdparm
sudo hdparm -Tt <disk_id>
where disk_id is of the type /dev/sda
As a result you may expect something like:
/dev/sda:
Timing cached reads: 26114 MB in 1.99 seconds = 13122.03 MB/sec
Timing buffered disk reads: 1062 MB in 3.00 seconds = 353.70 MB/sec
To run the benchmark
To get the description of all input parameters
imread_benchmark -h
imread_benchmark -d <path to images> \
-i <number of images to use> \
-r <number of repeats>
Extra options:
-p - to print benchmarked libraries versions
-s - to shuffle images on every run
--show-std - to show standard deviation for measurements
Libraries that are benchmarked:
- OpenCV
- pillow-simd (PIL-SIMD)
- jpeg4py
- scikit-image (skimage)
- imageio
- pyvips
Metadata
Release files for imread-benchmark 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imread_benchmark-0.0.5.tar.gz | 5.2 kB | Without provenance | Details for imread_benchmark-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imread_benchmark-0.0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for imread_benchmark-0.0.5-py2.py3-none-any.whl |
Total release size: 10.9 kB
Release files / imread_benchmark-0.0.5.tar.gz
| Download URL | imread_benchmark-0.0.5.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
970777b5ede277590ad16a743e293ab0b0b4373354bf89943901a90b484bb70e
|
|
BLAKE2b-256 checksum How to use checksums |
6df2c64e4d1cdc11edac12ca25a46f8a47750842f36f6a6037fd7e1e02422e0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / imread_benchmark-0.0.5-py2.py3-none-any.whl
| Download URL | imread_benchmark-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bc920a9111491de533d0e8c5faa5462bee3ebc1666e61ab9a072ecc435694107
|
|
BLAKE2b-256 checksum How to use checksums |
9be917e9928ab2a3edd7fd7a68687926fe02a412121ca69a7509bff67e31b0fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for imread-benchmark 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.