Skip to main content

CLI tool to benchmark drive performance

Project description

Designed to run similar tests as Crystal Disk Mark using fio with user friendly output options.

Tests ran:

  • Sequential read/write w/ 1MB block size

  • Random read/write w/ 512K block size

  • Queue depth 32 random read/write 4K blocks size

Install

# system install
$ sudo pip3 install disk-bench

# user install
$ pip3 install --user disk-bench

Usage

$ disk-bench --help

# Default runs fio w/ --loops=3 and --size=1G
$ disk-bench /mnt/disk-to-test/whatever

# Show CSV output (for easy copy/paste into Excel or Google Sheets)
$ disk-bench /mnt/disk-to-test/whatever --style=csv

# Quick
$ disk-bench /mnt/disk-to-test/whatever --loops=1 --size=1M

Command Details

The fio command we are running is essentially:

fio –directory . –filename=disk~bench.tmp –output-format=json –stonewall –ioengine=libaio –direct=0 –gtod_reduce=1 –name=seqread –bs=1m –rw=read –size=64G –name=seqwrite –bs=1m –rw=write –size=64G –name=randread –bs=512k –rw=randread –size=4G –name=randwrite –bs=512k –rw=randwrite –size=4G –name=4kQD32read –bs=4k –iodepth=32 –rw=randread –size=4G –name=4kQD32write –bs=4k –iodepth=32 –rw=randwrite –size=4G –name=4kQD16 –bs=4k –iodepth=32 –rw=randrw –rwmixread=65 –size=4G

Changelog

0.2.1 released 2018-12-22

  • add fio command example to readme (d4f6bef)

  • add direct flag back (578f509)

0.2.0 released 2018-12-21

  • change tests we run and output format (df6ac7b)

0.1.4 released 2018-12-21

0.1.3 released 2018-12-21

0.1.2 released 2018-12-20

  • fix some packaging issues (f908a1d)

0.1.1 released 2018-12-20

0.1.0 released 2018-12-20

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

disk-bench-0.2.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

disk_bench-0.2.1-py2.py3-none-any.whl (9.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file disk-bench-0.2.1.tar.gz.

File metadata

  • Download URL: disk-bench-0.2.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.5.2

File hashes

Hashes for disk-bench-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3378fe3552ec18b7eca7b72654a6943b7c2703bf04d0bccb2fce349b6bd3cf87
MD5 af410e9f03be22dbeda871250b1d0137
BLAKE2b-256 8b759a09cc5d8262a40bc51dcbbd12e3ffb5df9d0381e150d17dce837276e048

See more details on using hashes here.

File details

Details for the file disk_bench-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: disk_bench-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.5.2

File hashes

Hashes for disk_bench-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ebf9447b18b30338803a26884cba34b8735992f19e0f83466e52a4c42ca978d3
MD5 66e1f4a4ef30495286fe6a700ff913b5
BLAKE2b-256 f6c8283e3b10338bb9435b4436d2bbc96708677b2cdf428afe303be24e642dee

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