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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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