Back to .md Directory

Raspberry Pi Benchmarks

Collects eight benchmarking scripts for Raspberry Pi, covering CPU, GPU, memory, disk, and webGL performance.

May 2, 2026
0 downloads
0 views
ai
View source

What this file does

Collects eight benchmarking scripts for Raspberry Pi, covering CPU, GPU, memory, disk, and webGL performance.

When to use it

  • You need to compare Raspberry Pi performance across different models or OS versions
  • You want to stress-test a Pi's CPU and monitor temperature with Stressberry
  • You need to measure SD card read/write speeds on a Raspberry Pi
  • You want to run a full suite of open-source benchmarks like Phoronix or glmark2

Assumes this stack

Raspberry Pi OSBashwgetapt

Raspberry Pi Benchmarks

This is my collection of Raspberry Pi benchmarks. They have all been tested on standard Raspberry Pi OS (Raspbian) and work fine. If you have any problems, please open a new issue.

Roy Longbottom's Pi Benchmarks

Information: http://www.roylongbottom.org.uk/Raspberry%20Pi%20Benchmarks.htm

cd ~/Downloads
wget -O Raspberry_Pi_Benchmarks.zip https://github.com/ryanfortner/rpi-benchmarks/raw/main/Linpack-Benchmarks.zip
unzip Raspberry_Pi_Benchmarks.zip && rm Raspberry_Pi_Benchmarks.zip

glmark2

Compiled by Novaspirit Tech

You will need to get the mesa/vulkan drivers, instructions here

cd ~/
wget https://cdn.discordapp.com/attachments/720461552704159825/793351921091739688/glmark2.deb
sudo apt install --fix-missing -y ~/glmark2.deb && rm glmark2.deb
glmark2-es2

vkmark

Compiled by Novaspirit Tech

You will need to get the mesa/vulkan drivers, instructions here

cd ~/
wget https://cdn.discordapp.com/attachments/720461552704159825/793572064287260672/vkmark.deb
sudo apt install --fix-missing -y ~/vkmark.deb && rm vkmark.deb
vkmark

Phoronix Test Suite

Script by Jeff Geerling on YouTube.

GitHub: https://github.com/geerlingguy

wget -O phoronix.sh https://raw.githubusercontent.com/ryanfortner/rpi-benchmarks/main/pi-benchmark-general-phoronix.sh
sudo chmod +x phoronix.sh
sudo ./phoronix.sh

Stressberry

This benchmarking tool will stress the CPU of your Pi and create a temperature graph. Instructions

Disk speed benchmark

This script will measure the write/read speed of your system drive

wget -qO- https://raw.githubusercontent.com/ryanfortner/rpi-benchmarks/main/sdcard-bmark.sh | bash

nbench

BYTEmark* Native Mode Benchmark ver. 2 (10/95)

wget https://github.com/ryanfortner/rpi-benchmarks/raw/main/nbench
chmod +x nbench
sudo mv nbench /usr/bin/nbench
nbench

tinymembench

Information: https://github.com/ssvb/tinymembench A simple memory benchmark program, which tries to measure the peak bandwidth of sequential memory accesses and the latency of random memory accesses. Bandwidth is measured by running different assembly code for the aligned memory blocks and attempting different prefetch strategies.

wget https://github.com/ryanfortner/rpi-benchmarks/raw/main/tinymembench
chmod +x tinymembench
sudo mv tinymembench /usr/bin/tinymembench
tinymembench

webgl samples

This application shows a couple webGL samples. I typically use the aquarium one but whichever one you use is your choice.

wget -qO- https://github.com/ryanfortner/rpi-benchmarks/raw/main/webgl.sh | bash

What's inside

8 benchmark sections, each with a brief description and a code block for installation and execution.

Change this for your project

  • Replace ryanfortner/pi-bashscripts-files with your own repository path if you fork the scripts
  • Replace ryanfortner/rpi-benchmarks with your own repository URL in all wget commands
  • Replace Discord CDN URLs like cdn.discordapp.com/attachments/... with your own hosted binaries for glmark2 and vkmark

Where it goes

Keep alongside your test suite. Used to define and score model evaluations.

Worth borrowing

  • Provide a one-liner wget-and-run command for each benchmark to minimise setup friction
  • Link to external documentation and video tutorials alongside each script for context

Related Documents