Raspberry Pi 5 benchmarks

The load generator and the service run on the same Raspberry Pi 5. They use separate CPU cores and communicate over TCP at 127.0.0.1. Choose a product to see results, read the methodology or run a benchmark.

CoAkka Runtime

Core and SDK 3.3 · Connector revisions 3.3.1 and 3.3.2

The benchmark counts completed request and reply round trips per second. Each request and reply carries 32 B of application data in a CoAkka Runtime message. C8 and C64 mean 8 or 64 requests waiting for a reply at once.

CoAkka HTTP Runtime

Core and SDK 2.3.0 · Connectors 2.3.1

The benchmark counts completed HTTP requests per second. The load generator sends GET /fixed over 64 persistent HTTP/1.1 connections. The HTTP 200 response has a 32 B body. Headers add bytes of their own.

Read the results

Throughput counts completions per second. p99 is the time within which about 99% of exchanges completed.

Read both together and compare results under the same workload, protocol and concurrency. The published tables show p99 in ms, alongside CPU usage, memory and temperature.

Measure your CoAkka Runtime application to size a deployment.

Run the benchmarks on a Raspberry Pi 5

Start with the C and C++ services. Check the board, download the code and run a short smoke check before measuring. The load generator and service run on the same Pi.

Prepare the Raspberry Pi 5

The published results used a physical Raspberry Pi 5 on Debian 13 arm64 with the Raspberry Pi kernel. Stop other CPU-intensive work and let the board cool. Run as a regular user with administrator-authorized noninteractive sudo for the isolated network and CPU governor steps.

Board checks
tr -d '\000' < /proc/device-tree/model
printf '\n'
uname -m
vcgencmd measure_temp
vcgencmd get_throttled
cat /sys/class/thermal/cooling_device0/cur_state
cat /proc/sys/kernel/sched_schedstats

Check for Raspberry Pi 5, aarch64, throttled=0x0 and fan state 4. Start CoAkka Runtime at 42°C or below and CoAkka HTTP Runtime normally at 43°C or below. Both reject runs that reach 49.60°C. CoAkka Runtime also requires the last line, kernel.sched_schedstats, to be 0. If it is 1, ask the administrator to set it to 0 on the benchmark Pi and restore the previous value afterward.

On Debian 13 arm64, install the shared tools and then those for the selected benchmark. These commands keep installed package versions.

Shared tools
sudo apt install --no-upgrade git curl python3 iproute2 nftables util-linux
Tools for CoAkka Runtime
sudo apt install --no-upgrade clang-19 libssl-dev
Tools for CoAkka HTTP Runtime
sudo apt install --no-upgrade build-essential cmake nghttp2-client=1.64.0-1.1+deb13u1

See the fan, permission and scheduler checks.

Download the two benchmark fixtures

These commands fetch the reproduction directories from coakka-publish and leave the shell in the coakka-publish checkout root. Start the selected benchmark from that directory.

Fixture download commands
git clone --depth 1 --filter=blob:none --sparse https://github.com/phuong-tran/coakka-publish.git
cd coakka-publish
git sparse-checkout set coakka-runtime/benchmark/reproduction coakka-http-runtime/benchmark/reproduction
Run CoAkka Runtime 3.3 with C and C++

After preparing the Pi and downloading the fixtures, run this from the coakka-publish checkout root. It verifies the source, prepares SDK 3.3 and smoke-tests a short exchange at C8 and C64 before measuring.

CoAkka Runtime benchmark commands
(
  set -eu
  cd coakka-runtime/benchmark/reproduction
  sha256sum --strict --check inputs.sha256
  python3 -B prepare.py
  flock -n "$HOME/.coakka-pi-performance.lock" \
    bash run-isolated.sh --smoke --output "$PWD/first-smoke"
  flock -n "$HOME/.coakka-pi-performance.lock" \
    bash run-isolated.sh --output "$PWD/first-results"
  python3 -B summarize.py first-results > first-results/summary.md
  cat first-results/summary.md
)

In the reproduction directory, open first-results/summary.md. Expect rows for C and C++ at C8 and C64, with 3 accepted runs per row. Throughput is shown in round trips per second and the replay summary gives p99 in µs.

Run CoAkka HTTP Runtime 2.3.1 with C and C++

After preparing the Pi and downloading the fixtures, run this from the coakka-publish checkout root. It verifies the source and prepares SDK 2.3.0. The smoke check covers startup, the response body, persistent connections and shutdown.

CoAkka HTTP Runtime benchmark commands
(
  set -eu
  cd coakka-http-runtime/benchmark/reproduction
  sha256sum --strict --check source.sha256
  bash prepare.sh
  bash run-isolated.sh --check --out "$PWD/first-smoke"
  bash run-isolated.sh --out "$PWD/first-results"
  python3 -B summarize.py --lane native-c --lane native-cpp --complete first-results \
    > first-results/summary.json
  cat first-results/summary.json
)

In the reproduction directory, open first-results/summary.json. "complete": true confirms 3 accepted runs for C and 3 for C++. Look for requests_per_second and p99_ms.

Measure a Python service

Use the same Pi preparation and load generator as the selected benchmark. Run one benchmark at a time. Debian 13 arm64 may require python3.13-venv. The fixture guides select and verify the matching Python package.

Keep host.json and the receipt.json files with the report. If a run is rejected, read the receipt and restore the required conditions. Keep the prepared fixtures. Retry the failed step with a fresh output directory, then pass that directory to the report command.

Read the full guide on coakka-publish.