TheRemote / PiBenchmarks

Raspberry Pi benchmarking scripts featuring a storage benchmark with score
https://pibenchmarks.com
MIT License
160 stars 12 forks source link
benchmarking pi-storage raspberry-pi storage-benchmark

Linux Storage Benchmarking Script (SBCs, PCs and all Linux devices)

Now supports PCs and other SBCs!

Announcement is available here: https://jamesachambers.com/benchmark-storage-performance-on-linux/

Overview

Storage benchmarking script featuring a storage benchmark with a heavy emphasis on random read/write performance (essential for OS / application). This is far more accurate of a representation of actual performance than simply simulating writing a large file.

Anonymously uploads your score to pibenchmarks.com for the purposes of making real, meaningful performance comparisons between the different storage devices themselves as well as the platforms they are being used on (PC vs Raspberry Pi vs cloud storage vs others).

You can optionally supply a username which is used as a sort of tracking tag where you can easily see all benchmarks you've ever taken across all devices!

View Results

View current benchmarks, discussion and analysis at: https://jamesachambers.com/2020s-fastest-raspberry-pi-4-storage-sd-ssd-benchmarks/
View the full results at: https://pibenchmarks.com/

Running the Benchmark

To run the benchmark type/paste:

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

If you want to choose which drive to test you can also use:
wget https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh
chmod +x Storage.sh
sudo ./Storage.sh /path/to/storage

Removing Installed Packages

Most of the packages the script installs are core system packages most of which should already be present. There are a couple benchmarking-only related ones that should be safe to remove if you want an absolute minimalist system.

If you want to remove the packages the script installed afterward you may do:

sudo apt remove iozone3 fio

These are iozone and fio which are both benchmarking utilities and should be safe to use unless you have something else installed that relies on them as a dependency (probably not likely but possible so make sure before removing packages).

Buy A Coffee / Donate

People have expressed some interest in this (you are all saints, thank you, truly)

Update History

November 26th 2023

January 1st 2023

August 21st 2022

August 14th 2022

August 13th 2022

June 27th 2022

  • Fixed udevadm giving a message that option 'w' was missing on some versions -- now runs a fallback test without that option

June 24th 2022

  • PC results now show in "Latest" and a "Top PC Scores" section has been added!
  • Reduce argument sizes to prevent curl upload error
  • Fixed curl "argument list too long" error
  • Fixed sdparm test overlapping with smartctl test

June 1st 2022

  • Improve apt dependency installation -- won't run apt-update if all dependencies are present to save time

May 28th 2022

  • Remove RAM column if it's not being used (it's not used on the Pi 4 and higher as the speed is fixed)
  • Clean up garbled mess output from curl when submitted to website
  • Remove clutter and useless output from IOZone test to show more data and less fluff

May 11th 2022

May 10th 2022

April 29th 2022

April 28th 2022

April 26th 2022

April 22nd 2022

April 16th 2022

April 10th 2022

March 20th 2022

March 17th 2022

August 4th 2021

May 29th 2021

May 21st 2021

May 9th 2021

February 24th 2020

January 6th 2020

December 22nd 2019

December 21st 2019

December 2nd 2019

November 24th 2019

November 22nd 2019

July 24th 2019

July 8th 2019

July 5th 2019

June 30th 2019

June 27th 2019

June 26th 2019

June 22nd 2019

May 25th 2019

May 4th 2019

April 27th 2019

April 16th 2019

March 30th 2019

March 29th 2019

March 18th 2019

March 17th 2019

March 16th 2019

Additional Models Supported