Raspberry Pi 3B+ MicroSD / SSD Speed Benchmarks

UPDATE: The 2022 storage benchmarks are now available!

After publishing my Raspberry Pi Minecraft Server tutorial I got some feedback on Reddit to try using a USB SSD for storage.  I expected some marginal improvement but nothing spectacular due to the USB 2.0 bus data rates.  In fact the results were so spectacular that I’m changing my storage recommendations entirely.  Let the games begin!

The contenders for the RPI storage benchmarks
The contenders for the RPI storage benchmarks

The Contenders

The Test

Each drive was imaged with Raspbian Lite and booted up once and a sudo apt-get update && sudo apt-get upgrade was issued.  After a reboot the testing began.  The mSATA solid state drive uses a USB 3.0 adapter to create a really cool flash drive (see my article here on how to make one).  The Crucial solid state drive uses a 2.5″ SATA to USB 3.0 adapter*.

The Raspberry Pi 4* was set to boot from USB mode so the entire operating system was running on the solid state drives just like the mSATA drives to provide a fair playing field.

The most important factor performance wise for a card running an operating system is small random read/writes.  The operating system is constantly reading/writing these.  The dd test measures raw throughput and represents what performance you’d see transferring a large file.  Some storage devices have very high throughput but poor 4k read/writes which indicates a poor medium to use as a card for your Raspian operating system.

Alright, on to the testing!

Benchmarking / Testing Storage

If you want to verify your drive’s performance you may want to run my storage benchmark with:

sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash

If you search for the model of your drive on Pi Benchmarks you can compare your score with others and make sure the drive is performing correctly!

Results

Contenderdd test4k random read4k random write4k read4k write4k rewrite
EMTEC8.4 MB/s64222057431209204
Samsung Evo+7.3 MB/s476876149146131117
SanDisk Ultra13.6 MB/s92472686955823242895
Samsung Evo16.6 MB/s1029733291034514953230
Samsung Pro Plus23.5 MB/s1018921151024724602985
SanDisk Cruzer USB4.7 MB/s398911161017020261969
SanDisk Extreme USB16.1 MB/s7339907711491973210291
Hynix mSATA SSD USB35.5 MB/s923111401114891099611473
Crucial 2.5″ SATA SSD USB35.1 MB/s1016711419110811041211443

Conclusion

The cheap MicroSD cards performed about as poorly as expected.  If you are running one of the generic cheap MicroSD cards in your Pi you are *really* slowing it down.  The difference from a generic EMTEC to a Samsung Pro Plus is staggering.  The raw dd throughput is 280% faster but the 4k random writes are 1000% faster on the Pro Plus!  You really do get what you pay for with a MicroSD card.

Now on to the flash drives.  The SanDisk Cruzer USB Flash drive is only a few bucks.  It performed predictably poorly.  Even mid range MicroSD cards beat it in every category and it was dead last in the dd test.  However don’t write off USB flash drives yet, because the SanDisk Extreme 64GB *crushed* it in 4k random writes.  Although the raw dd test throughput lost to the Samsung Pro Plus it is 233% faster when it comes to random writes.  None of the MicroSD cards come even close.  Conclusion?  If you use a very good USB flash drive you will outperform MicroSD cards fairly easily as there are much faster drives out there than the SanDisk Extreme I used in my test.

Now let’s talk about the final category and the true winner here: SSDs.  It’s not even close folks.  These drives are maxing the bus.  They have no weaknesses in any category and are faster than the most premium of all other storage mediums.  The two SSDs tested are not the same speeds.  They are just so fast that they are faster than the USB 2.0 bus can handle and it maxes out somewhere around 35MB/sec.  We are talking a 540% gain in 4k writes over the Samsung Pro Plus (not at all a cheap card).

The big takeaway here is that YES, they are worth using over MicroSD cards and flash drives.  On average you are getting at least 4x the random 4k write speed by using a solid state drive with your Raspberry Pi than the most premium of MicroSD cards can provide.  Unless you need your Pi to fit somewhere small and can’t fit a USB-based storage medium into your project, solid state storage is the best choice and clear winner!

14 thoughts on “Raspberry Pi 3B+ MicroSD / SSD Speed Benchmarks”

  1. Avatar for Karl

    I’ve been working on getting a minecraft sever up and running on an asus tinker board and your tutorial has been a huge help. Thanks for all your efforts!

    I’ve got the latest paper sever working but it could use just a bit more pep, I’m thinking the storage is the bottleneck. I’m using a Sandsik Ultra SD card but I was thinking that a USB flash drive might be the best choice after reading your findings.

    Would you recommend I flash the OS off the flash drive and run my tinkerboard off it? Or would the sever work fine if I just migrated the sever folder to the flash drive? I’m still new to these Linux micro computers, so any advice on that would be a great help!

    1. Avatar for James A. Chambers

      Hey Karl,
      Either method should provide a substantial improvement. Most of the storage bottlenecks are IO waiting to be read/written to the disk.
      If you have a fast disk like a solid state drive I’d recommend flashing the OS to it as well.
      Running the disk storage benchmarks like the Dramble benchmark should give you an idea of how fast your USB storage is. It is located here

  2. Avatar for zaner

    Great stuff man! I was utilizing what you wrote here and went to implement an SSD with my R.pi 3B+ but I’m having troubles getting it to boot from the SSD.

    Did you run into any common errors? I know I setup the USB Boot correctly because it will boot from a flashed Flash Drive, but just not an SSD.

    I tested on two different ones, a Kingston A400 and a PNY CS900 both with the same effect.
    I have a similar USB 3.0 to SATA cable, and I’m seeing the R.Pi go through the boot cycle because it powers the SSD for 2 seconds but then no dice!

    I’d be interested to hear if you ran into any problems with an SSD installation.

  3. Avatar for IcezZ

    I did not check the timings yet.
    All I can tell is that the worst part is exploring (with horse). Probably because it load a lot of chunks.
    For information, the mods I use are : Botania and thaumcraft

  4. Avatar for IcezZ

    I confirm, it’s better with an SSD, it is smoother (we are only 2 on the server).
    The mods I use need Forge, so I will stick with this configuration for now (until a new raspberry comes out !).
    Thanks for your reply !

    1. Avatar for James A. Chambers

      Thanks for the follow up post!

      Sounds like a good plan. The SSD will make a big difference. I’d also check out your timings as they should work on plugins as well and you may be able to determine which mods are the most expensive. Sometimes there are configurations that can help with resource usage if you identify which is the slowest and what it is slowing down on.

  5. Avatar for IcezZ

    Hello, did you try Minecraft with an ssd ?

    I have follow your previous tutorial to set up a minecraft server with a raspberry 3b+, and it works very well (thank you !!).
    But then I have installed forge + some mods, and the performance are not really amazing. It’s playable, but there is some latency (I use a samsung 32go microsd class 1).
    I’m going to use the timings tool to see the weaknesses.
    I am not sure an ssd will be better, the main limitation is probably the ram.

    1. Avatar for James A. Chambers

      I agree that the RAM is likely limiting you. Forge is a good framework but it is going to add some RAM usage. I’d see if you could find some equivalent Spigot/Bukkit plugins which use the framework that is already in this server and will spare you a lot of RAM usage. A good place to start: Spigot/Bukkit plugins

Leave a Comment

Your email address will not be published. Required fields are marked *

Type here..

Exit mobile version