Skip to content

Raspberry Pi 4 (arm64) round - #1580

Draft
Kaliumhexacyanoferrat wants to merge 13 commits into
mainfrom
raspberry-pi-round
Draft

Kaliumhexacyanoferrat wants to merge 13 commits into
mainfrom
raspberry-pi-round

Conversation

@Kaliumhexacyanoferrat

@Kaliumhexacyanoferrat Kaliumhexacyanoferrat commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

HttpArena on a Raspberry Pi 4

This PR runs the HttpArena benchmarks on a Raspberry Pi 4 (4× Cortex-A72, 4 GB, arm64) and publishes the results as a separate round on the leaderboard. The main board is not affected. It shows how your framework does on a small ARM machine with two cores and little memory, which is a very different place from the big x64 bench host.

See the results: https://http-arena.com/?round=rpi-1 (or pick "Raspberry Pi 4 (arm64)" in the round selector).

Rounds

Round Date Built from main Frameworks Results
5 2026-11-27 (running) ce840050 – will replace rpi-1
4 2026-11-05 – 2026-11-07 76e0fad7 174 ran, 36 skipped #1731
3 2026-10-28 – 2026-10-29 c9ae248b 174 ran, 29 skipped #1676
2 2026-10-22/23 adda5263 169 ran, 24 skipped #1622
1 2026-10-19 – 164 ran, 21 skipped #1584

Each round replaces the previous one under the same rpi-1 link, so the board always shows the latest run. Round 1 ran with the CPU capped at 1.2 GHz; from round 2 on the Pi runs at its stock 1.8 GHz with an active cooler. Round 3 raised the JVM heap limit from 25% to 50% of RAM; rounds 4 and 5 use the same settings with the frameworks as of early and late November.

Your framework is missing or failed? It usually failed to build or start on arm64 (for example an x64-only binary or base image), or it took longer than 120 s to come up on two cores. A fix in your framework on main is picked up by the next round.

Run it on your own hardware

The tooling here is not specific to the Pi. You can use it to benchmark on any machine you have, x64 or arm64:

  1. Check out this branch and add a host profile scripts/lib/hosts/<name>.sh (copy rpi.sh). It sets which cores the server and the load generator get, the connection counts and which profiles run.
  2. Run a single framework with HOST_PROFILE=<name> ./scripts/benchmark.sh <framework> --save, or all of them with HOST_PROFILE=<name> scripts/run_host_round.sh (resumable).
  3. Package the results as a round with scripts/build_host_round.py <name> --name "<your machine>" --id <id>.

To get your results on the board, open a PR off main with just site/data/rounds/<id>.json and its index.json entry (see #1622 for an example). Please describe the machine and how it was set up.

Summary of the platform changes

  • Host profiles (HOST_PROFILE=<name>) override cpusets, threads, connection counts and the profile list. Without one, benchmark.sh behaves exactly as on the bench host. Results go to results-hosts/<name>/, never to results/.
  • Pi profile: server on cores 0-1, load generator (in Docker) on cores 2-3, connection counts scaled down. Profiles that need sidecars or pinned rates far beyond the box (DB, gateway, h3, latency-1m, 8gbit) are left out. JVM servers get a max heap of 50% of RAM (from round 3; the JVM default of 25% is only ~950 MB here).
  • Runner (run_host_round.sh): builds each framework under a timeout, waits for the board to cool below 55 °C, samples throttling during the run and re-runs any framework that throttled.
  • Pi setup: 1.8 GHz performance governor, active cooler (no throttling seen), SSD, rootful Docker with cgroup_enable=memory.

Not for merging. This PR stays open as a draft and is rebased onto main before each round. Round results are merged through separate results-only PRs.

@Kaliumhexacyanoferrat
Kaliumhexacyanoferrat marked this pull request as draft October 17, 2026 19:30
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat changed the title Draft: Round for arm64 on as raspberry PI Raspberry Pi 4 (arm64) round Oct 17, 2026
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

👋 Heads up! This PR modifies the following frameworks:

MDA2AV pushed a commit that referenced this pull request Oct 19, 2026
* Add the Raspberry Pi 4 (arm64) round as an archived round

- site/data/rounds/3.json + index.json: the round's results
- gen_leaderboard_data.py: writes site/leaderboard/rounds/<id>.js per archived round
- leaderboard/index.html: ?round=<id> loads that payload; the round selector lists it
- assemble_site.sh: copies the round payloads into the site

The main board and its data are unchanged. The scripts that ran the round
stay in #1580 (draft).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCVEbnk4Uq1oKFv1JF7aFu

* Name the round rpi-1; leave generated payloads to the publish step

data.js, search.js and rounds/<id>.js are rebuilt by gen_leaderboard_data.py
when the site is published, so they stay as on main / gitignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCVEbnk4Uq1oKFv1JF7aFu

* archive.sh: number new rounds past numeric ids only

A named round (rpi-1) made max() return a string, which bash read as 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCVEbnk4Uq1oKFv1JF7aFu

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread frameworks/ktor-tuned/Dockerfile Resolved
@prothegee

Copy link
Copy Markdown
Contributor

Looks like legit approach round. Looking forward.

@Kaliumhexacyanoferrat

Copy link
Copy Markdown
Collaborator Author

@prothegee @bjhham the results are available on the site already: https://http-arena.com/?round=rpi-1#sort=rps:-1

We decided not to merge this into main for now but I will use this branch for further runs so thanks for the hints, will adjust the frameworks.

Kaliumhexacyanoferrat added a commit that referenced this pull request Oct 22, 2026
Suggested by @bjhham on #1580.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYQXZFSE1gy3mc7kwvzhje
Kaliumhexacyanoferrat added a commit that referenced this pull request Oct 28, 2026
Suggested by @bjhham on #1580.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYQXZFSE1gy3mc7kwvzhje
Kaliumhexacyanoferrat added a commit that referenced this pull request Nov 5, 2026
Suggested by @bjhham on #1580.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYQXZFSE1gy3mc7kwvzhje
Kaliumhexacyanoferrat and others added 11 commits November 27, 2026 20:13
…skip ci]

- scripts/lib/hosts/rpi.sh: opt-in HOST_PROFILE=rpi (cpusets, conns, threads,
  profile subset; results kept in results-hosts/ away from site/data)
- docker/zrk.Dockerfile: pick the release for the host arch (x86_64/aarch64)
- scripts/build_host_round.py: package a host's results as an archived round
- leaderboard: ?round=<id> loads rounds/<id>.js; the round selector navigates

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g each run; record the CPU clock cap [skip ci]

The Pi 4 throttles at 80 C under sustained all-core load. Runs now start
below 60 C and record whether the board throttled while they ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCVEbnk4Uq1oKFv1JF7aFu
Each fix keeps x64 behaviour unchanged:
- dotnet: --use-current-runtime instead of -r linux-x64 (cadente, carter,
  minima-sync, sisk, aspnet-minimal-satorigc)
- ioxide, genhttp-ioxide: HTTP/3 only on x64 (ioxide.ngtcp2/nghttp3 ship
  linux-x64 natives only, MDA2AV/ioxide#385)
- zig: pick the -Dcpu target and download by arch (zix*, libxev)
- viltrum: arm64 release asset; nginx: drop -m64 on arm64
- ruby: aarch64-linux in Gemfile.lock (rage, rails, sinatra)
- http4k, ktor, ktor-tuned: multi-arch gradle build image
- varnish: install varnish-dev matching the installed varnish

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCVEbnk4Uq1oKFv1JF7aFu
Suggested by @bjhham on #1580.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYQXZFSE1gy3mc7kwvzhje
…runs low; cool to 55 C [skip ci]

The Pi now boots from a 256 GB SSD, so removing every image after its run
only costs rebuild time. With the active cooler (fan on at 60 C, off at
~50 C) 55 C is a reachable, consistent starting point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYQXZFSE1gy3mc7kwvzhje
…m [skip ci]

In docker mode the generator is PID 1 in its container and ignores the
SIGTERM that timeout forwards through docker run. On the Pi an h2load run
against a stalled HTTP/2 server (aleph) hung for 42 minutes instead of 45 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYQXZFSE1gy3mc7kwvzhje
… built from [skip ci]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYQXZFSE1gy3mc7kwvzhje
…hook [skip ci]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants