Skip to content

compare: pin ubuntu-24.04, and refresh the comparison counts (run 45540985569) - #122

Merged
tap merged 2 commits into
mainfrom
claude/sample-rate-solutions-comparison-mqc190
Nov 25, 2026
Merged

tap merged 2 commits into
mainfrom
claude/sample-rate-solutions-comparison-mqc190

Conversation

@tap

@tap tap commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

What this changes

Two commits.

1. compare.yml runs on ubuntu-24.04, and a QEMU failure now prints why.

  • The pin matches ci.yml's ratchet, which pins the image for the same reason: the counts are a function of the apt toolchain, the plugin build and QEMU.
  • The M55/M33 and Hexagon loops take QEMU's exit status with || true. A refused plugin or a crashed guest now reaches the existing ICOUNT_DONE check, which prints QEMU's output and the binary's name.

2. The counts of run 45540985569 on f1816cc (DspTap 4b30a02, 2026-11-25), and the prose that cites them.

  • Each engine's bench/compare_counts.json is that run's artifact, checked against its digest.
  • scripts/update_compare_docs.py regenerated the three COMPARISON.md blocks.
  • Prose outside the blocks is recomputed from the new tables:
    • async/docs/COMPARISON.md: SpeexDSP's multiples and the landscape row.
    • bridge/docs/COMPARISON.md: the Q15 figures.
    • rational/docs/COMPARISON.md: the Q15 ranges and multiples, and the float multiples against r8brain, libsamplerate and SpeexDSP. Also the design sizes: 39 / 59 taps at economy and 99 / 149 at transparent.
    • The family docs/COMPARISON.md.
    • The book's two-crystals chapter: 849 instructions per frame, ~58×.
  • Rational's note on stale tables now names only the host wall-clock table. compare.yml does not measure it, and it still predates X17.

Why

Before this PR, the comparison doc's embedded counts predated X-a2 (X17's re-tuned designer). The first re-run on main (run 45528691636) failed in all three engines' jobs at the first QEMU call, with no message:

  • ubuntu-latest is now Ubuntu 26.04, whose qemu-system-arm 10.2.1 loads only plugins of API version 2 or later (plugins/plugin.h, QEMU_PLUGIN_MIN_VERSION 2).
  • The counting plugin is built against QEMU 8.2.2's pinned header, which is API version 1, so QEMU refused it.
  • The out=$(...) assignment then ended the step under bash -e before the check that prints QEMU's output could run.

Verification

  • The run on this branch at f1816cc: all three jobs green, 140 binaries (async 20, bridge 40, rational 80) on each of the M55, M33 and Hexagon.

  • Same toolchain as the previous record (run 38013347369, 2026-10-10): arm-none-eabi-gcc 13.2, qemu-system-arm 8.2.2 on ubuntu24, hexagon-clang 19.1.5 and qemu-hexagon 8.2.2.

  • Competitors are unchanged beyond start-up.

    • Every libsamplerate, r8brain and SpeexDSP count is identical on the M33 and M55.
    • On Hexagon each binary runs a constant +25 (async, bridge) or +36 (rational) at both 2 s and 4 s. So steady state is unchanged and construction moves by that constant.
  • Our rows went down (whole-binary counts):

    Engine Float Q15
    async 0.1–1.9 % 0.3–3.4 %
    bridge up to 1.3 % up to 4.6 % (a few M33 rows +0.1 %)
    rational 0.6–21 % (transparent by 2 the most) 3.9–41 %

    The rational drops follow X17 and A13.

  • Local checks:

    • scripts/update_compare_docs.py is stable on the committed records: a second run changes nothing, which is what ci.yml's compare-docs gate checks.
    • scripts/check_retired_words.py is clean.
    • Every recomputed multiple was checked against the regenerated tables.
    • The rational design sizes come from the shipping headers (taps() / macs_per_output() of the four stages).
  • Not run locally: the mdBook build, because mdbook isn't installed here. CI builds it.

Notes for the reviewer

  • The host wall-clock tables in the engines' comparison docs are still the 2026-10-10 session on a different machine. Re-measuring them is a separate local bench run.
  • The refresh commit's message is wrong in one place. It says rational's largest drops are "at economy"; in float they are at transparent by 2 (−19 to −21 %). The body above is correct. I could not amend the message without a force push.
  • A construction claim I left alone. Rational's construction paragraph says its design is "the fraction of a million above libsamplerate's row". That holds on the M55, but on the M33 the gap is about 4–5 M at by 2. The figures did not move in this run (≤ 0.2 M), so I left that sentence as it was.

🤖 Generated with Claude Code

https://claude.ai/code/session_016GKzq1VSdcMYCRMhddiMaf

The comparison run on main (run 45528691636) failed in all three engines'
jobs at the first QEMU call, with no message. ubuntu-latest is now Ubuntu
26.04, whose qemu-system-arm 10.2.1 loads plugins of API version 2 or
later (plugins/plugin.h, QEMU_PLUGIN_MIN_VERSION); the counting plugin is
built against QEMU 8.2.2's pinned header, API version 1, so QEMU refused
it. The out=$(...) assignment then ended the step under bash -e before
the check that prints QEMU's output could run.

- runs-on: ubuntu-24.04, as ci.yml's ratchet pins it for the same reason
  (the counts are a function of the apt toolchain, the plugin build and
  QEMU). The recorded counts were measured there too: compare_counts.json
  names qemu-system-arm 8.2.2 and arm-none-eabi-gcc 13.2 on ubuntu24.
- The M55/M33 and Hexagon loops take QEMU's exit status with || true, so
  a refused plugin or a crashed guest reaches the existing
  ICOUNT_DONE check, which prints QEMU's output and the binary's name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016GKzq1VSdcMYCRMhddiMaf
Each engine's bench/compare_counts.json is the record compare.yml uploaded
in run 45540985569 on f1816cc (DspTap 4b30a02, 2026-11-25), each artifact
checked against its digest, on the toolchain the previous record (run
38013347369, 2026-10-10) used: arm-none-eabi-gcc 13.2, qemu-system-arm
8.2.2 on ubuntu24, hexagon-clang 19.1.5 and qemu-hexagon 8.2.2.
scripts/update_compare_docs.py regenerated the three COMPARISON.md blocks.

What moved:
- The competitors did not, beyond start-up: every libsamplerate, r8brain
  and SpeexDSP count is the same on the M33 and M55, and on Hexagon each
  binary runs a constant 25 (async, bridge) or 36 (rational) more at 2 s
  and at 4 s alike, so steady state is unchanged and construction moves by
  that constant.
- Our rows went down (whole-binary counts): async 0.1-1.9 % in float and
  0.3-3.4 % in Q15, bridge up to 1.3 % in float and 4.6 % in Q15 (a few
  M33 rows +0.1 %), rational 0.6-21 % in float and 3.9-41 % in Q15, the
  largest at economy, since X17's re-tuned designer and A13.

The prose outside the blocks that restates those figures is recomputed
from the new tables: async/docs/COMPARISON.md (SpeexDSP's multiples, the
landscape row), bridge/docs/COMPARISON.md (the Q15 figures), rational's
(the Q15 ranges and multiples, the float multiples against r8brain,
libsamplerate and SpeexDSP, the design sizes now 39 / 59 taps at economy
and 99 / 149 at transparent), the family docs/COMPARISON.md and the book's
two-crystals chapter (849 instructions per frame, ~58x). rational's note
on stale tables now names only the host wall-clock table, which compare.yml
does not measure and which still predates X17.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016GKzq1VSdcMYCRMhddiMaf
@tap
tap merged commit 4e12023 into main Nov 25, 2026
41 checks passed
@tap
tap deleted the claude/sample-rate-solutions-comparison-mqc190 branch November 25, 2026 12:11
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.

2 participants