Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brettinternet/94d6d8a1e01f4a90b6dfdc70d6b4a5e5 to your computer and use it in GitHub Desktop.
Save brettinternet/94d6d8a1e01f4a90b6dfdc70d6b4a5e5 to your computer and use it in GitHub Desktop.
Raspberry Pi 4B read/write speedtests
# Micro SD
## read
sudo hdparm -Tt /dev/mmcblk0
/dev/mmcblk0:
Timing cached reads: 2190 MB in 2.00 seconds = 1095.17 MB/sec
Timing buffered disk reads: 126 MB in 3.04 seconds = 41.46 MB/sec
## write
dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output
10240+0 records in
10240+0 records out
83886080 bytes (84 MB, 80 MiB) copied, 0.214672 s, 391 MB/s
# SSD over SATA USB 3.0
## read
sudo hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads: 2008 MB in 2.00 seconds = 1004.42 MB/sec
Timing buffered disk reads: 956 MB in 3.05 seconds = 313.07 MB/sec
## write
dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output
10240+0 records in
10240+0 records out
83886080 bytes (84 MB, 80 MiB) copied, 0.213062 s, 394 MB/s
# for compatible USB to sata see https://jamesachambers.com/new-raspberry-pi-4-bootloader-usb-network-boot-guide/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment