Skip to main content

Benchmark for image reading for different libraries.

Project description

Code style: black CircleCI

I/O benchmark

I/O benchmark for different image processing python libraries.

Installation

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

Libraries that are benchmarked:

OpenCV PIL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imread_benchmark-0.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

imread_benchmark-0.0.2-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file imread_benchmark-0.0.2.tar.gz.

File metadata

  • Download URL: imread_benchmark-0.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.33.0 CPython/3.6.9

File hashes

Hashes for imread_benchmark-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0f7ef6c68a64e25bcfc8745ea60b774d9cdd2515e910286b31171c9230c49e0e
MD5 9de5bf76a2d6caf2386396a3e1e4e0c2
BLAKE2b-256 b3bf36e77e1b52124048e74e716e1a781518d90b8567f63eedc9e7dacedc5fcf

See more details on using hashes here.

File details

Details for the file imread_benchmark-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: imread_benchmark-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.33.0 CPython/3.6.9

File hashes

Hashes for imread_benchmark-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 41d09ff40570d0c59932ba186eb543a16e75d894ae25f031d9d1a70bb85ed2ce
MD5 4d8f2da7ed89982341376663a245beb7
BLAKE2b-256 394b560a01666b14b33c78b1de9ed6bc51e2d51c5dae21435b6314e826aa3b7c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page