Hard Disk IOPS Benchmark
Synonyms:
ioping is the most easy to use tools I can find to benchmark hard disk performance.
install ioping
sudo apt install ioping
ioping usage
ioping .
example output (2.42 k iops)
4 KiB from . (ext4 /dev/xvda1): request=1 time=337 us
4 KiB from . (ext4 /dev/xvda1): request=2 time=593 us
4 KiB from . (ext4 /dev/xvda1): request=3 time=418 us
4 KiB from . (ext4 /dev/xvda1): request=4 time=367 us
4 KiB from . (ext4 /dev/xvda1): request=5 time=423 us
4 KiB from . (ext4 /dev/xvda1): request=6 time=401 us
4 KiB from . (ext4 /dev/xvda1): request=7 time=340 us
4 KiB from . (ext4 /dev/xvda1): request=8 time=402 us
4 KiB from . (ext4 /dev/xvda1): request=9 time=417 us
4 KiB from . (ext4 /dev/xvda1): request=10 time=429 us
4 KiB from . (ext4 /dev/xvda1): request=11 time=418 us
^C
--- . (ext4 /dev/xvda1) ioping statistics ---
11 requests completed in 10.1 s, 2.42 k iops, 9.45 MiB/s
min/avg/max/mdev = 337 us / 413 us / 593 us / 64 us
ioping -R .
example output (2.91 k iops)
--- . (ext4 /dev/xvda1) ioping statistics ---
8.68 k requests completed in 3.00 s, 2.91 k iops, 11.4 MiB/s
min/avg/max/mdev = 258 us / 343 us / 11.3 ms / 217 us
sudo ioping -R /dev/nvme0n1
example output (44.7 k iops)
--- /dev/nvme0n1 (block device 372.6 GiB) ioping statistics ---
77.1 k requests completed in 3.00 s, 44.7 k iops, 174.8 MiB/s
min/avg/max/mdev = 8 us / 22 us / 2.15 ms / 26 us