Performance & quality¶
CI records performance, quality, and memory measurements after merges and every
night. This page shows the latest values from main, explains each measure, and
links to the append-only histories. The line under the cards names the commit the
newest figures were measured on and says how old it is;
Where each number comes from says which job
measures each series and when.
Each card has one line per codec (AC-3, E-AC-3, and AC-4), and the speed, allocation and live-growth cards add a TrueHD line once the series holds a TrueHD workload. A figure is the worst case among that codec's own workloads, except on the listening-quality card, which gives the range, and the workload it comes from is named beside it. The figures of two codecs come from different workloads and do not compare with each other. Each series is written by its own job, so a line recorded on an older commit than the one named under the cards says which commit and day it was recorded on. The speed and allocation series cover all three codecs and the Atmos object layer. AC-4's decode quality is a series of its own on Quality trend with no per-channel floors yet, so its figure has no colour. The listening-quality card scores the encoders of all three codecs: AC-3 and E-AC-3 from the tool comparison, AC-4 from its own series, AC-4 encode quality.
TrueHD is in the speed, allocation and live-growth series, and in no quality series. iclforge-perf,
iclforge-bench, iclforge-membench and iclforge-kernelbench measure it
(what is measured), and a lossless decoder has no quality
figure to trend: its check is that FFmpeg's strict decode equals the source (Validation: TrueHD).
Its line appears on the cards once the trend history holds a TrueHD row. Instruction counts and image sizes on the small parts, and the
per-platform pages, are on the roadmap.
New to codec benchmarks: start with How to read these numbers.
Loading the latest measurements from main…
The three questions¶
The measurements answer three questions. Speed, audio quality, and memory use are tracked separately because a change can improve one while making another worse.
Is it fast enough?¶
Encoding and decoding are measured in milliseconds per frame, then expressed as a multiple of real time. One AC-3 frame carries 32 ms of audio, so a frame that takes 0.32 ms to encode runs at 100x real time: a minute of audio in 0.6 seconds. An AC-4 frame carries 2,048 samples, 42.67 ms at 48 kHz, and its multiple is taken against that.
The Speed card shows the slowest workload of each codec, encode or decode, and says which it is. Encoding is the slower direction by a wide margin, so it is the one shown in practice.
Each line also names the CPU model it was measured on. The linux-gcc leg runs on
GitHub's hosted runner, which is one of several models from run to run, and the
card shows the newest run, whichever machine it had. Over the fourteen runs to
2026-10-12 AC-3 read 7x, 9x and 10x and E-AC-3 4x, 5x and 6x, while the eight of
those runs that had the same machine agree to within 0.4%. When the x86 machine is
a fast one the arm64 leg is the slower of the two, and its figure is the one shown.
The README's speed badge carries the same figures and has no room for the name.
Anything above 1x is fast enough to keep up with playback. The margin above that is what buys you batch transcoding, live capture with headroom, and running on a Raspberry Pi rather than a workstation.
→ Performance trend tracks this per workload, per kernel, and alongside memory use, and compares each CPU model with itself.
Does it sound right?¶
Two measures are used.
SNR (signal-to-noise ratio, in dB) compares the decoded waveform against the original sample by sample. Higher is better. It is objective and unforgiving, and it is the right tool for catching a decoder that has broken — but it punishes techniques that are designed to discard inaudible detail, so a low SNR is not automatically a quality problem.
What the SNR number on this page is actually measuring
Most checks behind the Decode accuracy card compare this decoder with FFmpeg's decoder for the same bitstream. Where FFmpeg cannot read a stream, and for every AC-4 stream, the check scores this decoder against the source the stream was encoded from. Neither measures perceived audio quality. The inputs include bitstreams produced by Dolby's encoder.
That distinction matters for reading the number. Perfect agreement would be limited only by floating-point noise, and on the channels that carry most of the audio it very nearly is: 57–88 dB, run after run, on every platform. Where the two decoders diverge, it is usually not because either is wrong. A/52 §7.3.4 says a decoder may substitute "any reasonably random sequence" for the bins the encoder spent no bits on, so two spec-correct decoders are required to differ there — and those bins cluster in the surround channels, which is why a 5.1 fixture's Ls/Rs land around 22 dB while its centre channel sits near 58 dB.
So: a low number on one channel of one fixture is a statement about how much freedom the standard leaves, not about audio quality. Read Quality trend for what the number does over time, which is the part that carries information, and see Validation for what it would take to remove that spec-permitted divergence from the measurement entirely.
MOS-LQO (1 to 5) is a prediction of what a listening panel would say, produced by ViSQOL. It models hearing rather than arithmetic, so it credits a stream that sounds right even where the waveform has moved.
→ Quality trend tracks the gold-reference SNR gate, AC-4 decode quality and AC-4 encode quality. → Tool comparison trend tracks per-tool quality. → Object quality trend covers Atmos objects. → Landscape puts this encoder beside FFmpeg's and Dolby's.
Does it stay within its budget?¶
Two cards come from the allocator. Allocation per frame counts allocator traffic: the bytes and calls the heap served over a frame, whatever became of them. It is not the memory a codec occupies, because a buffer allocated and freed every frame counts every time and is held by none. No gate sits on it, so its card has no colour. Live growth is what is still held after the steady-state frames (199 of a 200-frame run for most workloads). A couple of KiB of retained working state is expected; CI warns at 4 KiB and fails the build at 1 MiB, and the card turns amber at the same 4 KiB line, so its colour says which workload retains memory. Peak resident memory is recorded as well.
A codec that leaks, or whose working set grows with the length of the file, fails on long content and on small devices even when it is fast.
→ Performance trend carries the memory tables.
Where each number comes from¶
Nothing on these pages is typed in. Each page fetches a history file from the
quality-history branch when it is opened and draws its figures from the records
in it, and a record carries the commit it was measured on and that commit's date.
The files are written by jobs of ci.yml, the run that verifies main:
Series (file on quality-history) |
Measured by | Runs | Runner |
|---|---|---|---|
Speed, per workload (performance-main.jsonl) |
Publish performance trend: builds iclforge-bench with GCC 16, runs it three times and records the fastest; the arm64 figures come from Publish performance trend (arm64 measurements) |
After a merge, nightly, on request | GitHub-hosted ubuntu-latest and ubuntu-24.04-arm, in an ubuntu:26.04 container |
Speed, per kernel (kernels-main.jsonl) |
The same job, iclforge-kernelbench |
The same | ubuntu-latest |
Allocation and live growth (memory-main.jsonl) |
The same job, iclforge-membench |
The same | ubuntu-latest |
Decode accuracy (main.jsonl) |
The gold-reference gate of each build leg; Publish quality trend appends the legs whose gates passed |
After a merge (the legs the merges touched), nightly (every leg), on request | The Linux and Windows legs normally on the self-hosted fleet, macOS and arm64 on GitHub-hosted runners |
Tool comparison and listening quality (external-comparison-main.jsonl) |
FFmpeg Validate scores this build's encodes (SNR, LSD and ViSQOL's MOS-LQO, tools/ci/quality_race.py); Publish external-encoder landscape trend appends them beside the committed FFmpeg and Dolby figures |
Nightly, on request | Normally self-hosted Linux |
AC-4 decode quality (ac4-quality-main.jsonl) and AC-4 encode quality (ac4-encode-quality-main.jsonl) |
Two scoring steps of FFmpeg Validate, appended by the same publisher |
Nightly, on request | Normally self-hosted Linux |
Object reconstruction (object-quality-main.jsonl) |
The last step of FFmpeg Validate; Publish object-reconstruction quality trend appends it |
Nightly, on request, and only after an FFmpeg Validate that passed |
Normally self-hosted Linux |
The README's badges (badges/*.json) |
Publish performance trend, from the series above |
With the speed series | ubuntu-latest |
"After a merge" is the run of ci.yml on a push to main. One runs at a time, so
when merges come faster than a run takes (about an hour), one run stands for all
the merges since the run before it, and its records carry the newest of those
commits. "Nightly" is the scheduled run of the whole matrix. "On request" is
gh workflow run ci.yml --ref main, which runs the whole matrix on the tip of
main and records every series: it is how a full set of records is taken without
waiting for the night. A series holds a commit once, so a second run of a commit
adds only what the first did not record.
Each publisher depends on the job that measured its figures and on nothing else. A leg that failed leaves a gap in its own series for that commit, and every other series is still written. When no run has recorded anything for a while, the pages go on showing the last figures: the line above each series gives their commit and age, and turns amber after two days for the series written after merges and three for the nightly ones.
The figures on the ESP32 pages are not part of this. They are measured on real
boards with tools/hearth/board_suite.py, by hand, and kept as baselines under
firmware/hearth-sink/baselines/; the emulated ESP32 legs of CI hold a build to
its size, its levels and its heap floor and publish nothing.
What happens when a number moves¶
Thresholds separate expected run-to-run variation from regressions:
| Tier | What it means | What happens |
|---|---|---|
| Noise | Under ~3%, or inside the run-to-run spread | Reported as unchanged |
| Soft | 20% slower, or 0.5 dB of quality lost | Warning on the run; merge proceeds |
| Hard | Twice as slow, quality 10 dB below its trailing average (3 dB for AC-4), or a gate floor breached | Fails the build |
Quality is gated per channel, not once per file. Each channel of each
fixture has its own floor, derived from that channel's own lowest measurement
across every platform and every commit on record
(tools/checks/derive_channel_floors.py is the derivation, and it is a script
rather than a judgement call so a floor move is reviewable as a diff against
evidence). The trend check works the same way: a channel is compared against
its own trailing average, so a front channel slipping is caught even while the
surrounds — which sit far lower by design — have not moved at all.
Per-channel floors closed a hole. One floor per fixture had to be low enough for the lowest channel to pass, which on the 5.1 fixtures meant a floor set by the dither-dominated surrounds: 22 dB, against a centre channel measuring 58 dB. The centre could have collapsed by 36 dB and the gate would still have gone green. Each floor is now its channel's lowest measurement minus 1 dB, rounded down, so the same fixture fails on a drop of about 1 dB in any channel.
Timings come from shared CI runners, so a single slow run is not evidence of anything. Every published number is the fastest of several repetitions, and the trend pages show the run-to-run spread beside it so you can tell a real move from a noisy one.
How to read these numbers¶
A short glossary, in the order you are likely to meet them.
Frame — the unit a codec codes audio in. An AC-3 or E-AC-3 frame is 1536 samples, 32 ms at 48 kHz; an AC-4 frame at the default frame rate is 2048 samples, 42.67 ms. Nearly every measurement here is "per frame" so that it does not depend on how long the test file happens to be.
Workload — one benchmarked configuration: a codec, a channel layout, and a direction (encode or decode), such as AC-4 5.1 encode. Every figure on this page names its workload, because two workloads of one codec can differ by an order of magnitude in time and in allocation.
x real time — how much faster than playback. 100x means one minute of audio is processed in 0.6 seconds. Below 1x means it cannot keep up live.
ms/frame — the same number before the division. Lower is better.
SNR (dB) — how closely two pieces of audio match, sample by sample. Higher is better, and every 6 dB is roughly one more bit of accuracy. What the two pieces are decides how to read it. Against the original recording it measures coding loss (where below ~20 dB is usually audible and above ~40 dB usually is not). Between two independent decoders given the same bitstream, as in most checks behind this page's Decode accuracy card, it measures agreement: a different question, with a different scale, explained in the note above.
Floor — the SNR a given channel of a given fixture must stay above. One per channel, not one per file, and each derived from that channel's own measured history rather than chosen. The surrounds of a 5.1 fixture have much lower floors than its front channels because the standard permits decoders to differ more there, not because less is expected of them.
Headroom — how far a channel currently sits above its own floor. This is the number to watch: the raw SNR says how two decoders compare, headroom says how close the gate is to firing. A channel with a low SNR and healthy headroom is behaving exactly as designed.
MOS-LQO — predicted listening quality from 1 to 5, where 5 is indistinguishable from the original. Roughly: 4-5 excellent, 3-4 good, 2-3 fair, under 2 poor. A low bitrate legitimately scores lower — the point is whether it changes, not whether it is 5.
LSD (dB) — log-spectral distance: how far the decoded spectrum has moved, rather than the waveform. Lower is better. It is the fairer measure for coding tools that deliberately resynthesise a band instead of reproducing it.
Allocation per frame — the bytes requested from the heap over one frame in steady state. Allocator traffic, not memory in use.
Live growth — the bytes a workload still holds after its steady-state frames. CI warns at 4 KiB and fails the build at 1 MiB.
Leg — one platform-and-compiler combination (for example linux-gcc,
windows-msvc). The same code is measured on several, because a change can help
one and hurt another.
Gate — a threshold CI enforces. A number below its floor (or above its ceiling) fails the build rather than merely being recorded.