BlockleOS
RAM · flash · cycles

Measured numbers, and the list of ones nobody has measured

There is a standing rule in this project: a figure comes out of the measurement harness and names the machine and the command that produced it, or it does not get published. The harness prints not measured rather than an estimate, and this page reproduces that faithfully. Flash cost, stack high-water and instructions per verification are measured. Cycles, wall-clock time on a part, and energy are not measured at all, on any target — and those rows are blank rather than filled in optimistically.

Run conditions for everything on this page Correctness, lint and C-ABI rows: re-run 29 November 2026.   Size, stack and instruction rows: the bench sweep of 29 November 2026, 06:16 UTC, reproduced from bench/RESULTS.md — the file that make -C bench measure writes, and the only source any number on this page is taken from.   Toolchain: rustc 1.98.1 (48a229cea 2026-09-01), pinned in rust-toolchain.toml — the channel is a version, not “stable”, because a codegen change between compiler releases can move stack usage or code size enough to matter on a part with 8 KB of RAM.   Firmware profile: opt-level="s", LTO, one codegen unit, panic="abort", overflow-checks on.   Orchestrating host: aarch64 macOS, Apple silicon.   Emulator: QEMU 11.1.3, with the instruction-count plugin built against that QEMU’s own qemu-plugin.h by Apple clang 16.0.0.
  • Measured A command was run on a named machine and this is what it printed.
  • Spec constant Fixed by RFC 8554 or FIPS 204. Not ours to measure or to change.
  • Not measured Nobody has run it. No figure is published for that row at all, and none will be before there is a reading.
  • Failing It was run and it did not pass, published at the value it came out at. No row carries this today. Two did on 28 November — the lint gate and the C ABI smoke test — and both were fixed rather than quietly dropped; see the note under Table 1.
Table 1

Measured — correctness, lints and build gates

Each row names the command. They were run from this checkout on 29 November 2026 and this is their output. These are test-runner and compiler results — counts of tests and violations, not performance figures; the one exception is the host timing row, which comes from the bench harness and is fenced off below. Flash, stack and instruction figures are in Table 2.

WhatResultCommandStatus
RFC 8554 Appendix F, Test Case 1 Verifies as HSS (2 levels, h=5/w=8 over h=5/w=8), and its inner single-tree LMS verifies cargo test -p pqverify
  --test rfc8554
Measured
RFC 8554 Appendix F, Test Case 2 Verifies as HSS (h=10/w=4 over h=5/w=8), and its inner single-tree LMS verifies same Measured
Vector and negative test suite 193 passed, 0 failed, 3 ignoredAcross eight test binaries. The three ignored are the exhaustive sweeps, which are run separately — see the next row and the commands at the foot of this page cargo test --workspace Measured
Exhaustive single-bit mutation rejection 22,448 of 22,448 rejectedEvery bit of the 162-byte message (1,296) and of the 2,644-byte signature (21,152). Exhaustive, not sampled cargo test -p pqverify --release
  -- --ignored
Measured
Host verification time2-level HSS, h=5/w=8 over h=5/w=8 — RFC 8554 Test Case 1 3,065,805 ns per verification2,000 timed iterations after a 2,000-iteration warm-up, on aarch64 macOS. Stated once, in the units the harness writes, and quoted nowhere else on this site. Read it as an order of magnitude, not a benchmark score: it is the one figure here that is not a property of the compiled code, it was taken on a machine that was not quiesced, and consecutive runs of the same command differ materially make -C bench measure Measured — host only
Cross-target build, default features thumbv6m-none-eabi, thumbv7em-none-eabihf and x86_64-unknown-none all build make build-bare Measured
Cross-target build, ML-DSA compiled in All three targets build with --features mldsa cargo build -p pqverify
  --features mldsa --target …
Measured
No-panic lintsunwrap_used, expect_used, indexing_slicing, panic, arithmetic_side_effects and six more Zero violations across all four targets — no panicking construct and no unchecked arithmetic in the verifier make lint Measured
Whole make lint gateThe no-panic lints plus -D warnings on four targets Passes. This gate was red on 28 November over four unused variable warnings in the ML-DSA path, promoted to errors by -D warnings. The warnings are gone and the gate is green on a re-run make lint Measured
C ABI exercised from CHand-written header, compiled with -Wall -Wextra -Werror and called through Passes, 0 failures. Also red on 28 November, over a prototype mismatch on the streaming entry point where the smoke test and the header disagreed about the argument count. The signature now matches, the test links, and every case in it — including the null-pointer, truncation, short-scratch and bit-flip rejections — returns the documented error code make test-c Measured
Both fault-injection predicates survive codegenThe accept decision is two independent checks in the source; this disassembles the compiled form and fails if the optimiser deleted one Reached on every commit path, on all three bare-metal targets make verify-codegen Measured
Two rows were red on 28 November. Here is what happened to them

The lint gate and the C ABI smoke test both failed on the 28 November run, and this page published them as failing, at the value they came out at. Both were harness defects rather than defects in the verifier: four unused parameters tripping -D warnings, and a smoke test calling the streaming entry point with the wrong number of arguments.

Both have since been fixed and both gates pass on a re-run, which is why the rows above are green and dated 29 November. The red statuses were not deleted when they became inconvenient and the green ones are not being claimed for a date they were not run on. If a gate goes red again, this table will say so again.

Before quoting the host verification time That figure describes a development laptop, and it appears exactly once on this site, in the row above. It does not predict a Cortex-M0+ at 8 MHz, and the gap is not a scaling factor: different instruction set, no cache, no branch prediction, a 32-bit barrel shifter where the host has a vector unit and a SHA extension. It must not be quoted as an embedded figure, including after dividing by a clock ratio. The harness prints that warning under its own output for the same reason. The figures that do transfer to a part are in Table 2.
Table 2

On the target images: flash, stack and instructions

Every figure in this table is copied from bench/RESULTS.md, which is written by make -C bench measure and is the only place numbers on this site are allowed to come from. Read the three columns differently, because they have three different claims attached.

  • Transfers to silicon Flash. Section sizes of a linked image. The code size for a Cortex-M0+ is the code size for a Cortex-M0+ whichever machine ran the compiler.
  • Transfers to silicon Instructions per verification. An exact count between two marker symbols. A property of the compiled code and the input, so the same image executes the same instructions on a real part.
  • Emulated Stack high-water. Measured by the image itself, under QEMU. The number is the real maximum for that code and input, but it was taken in an emulator, not on a part.
  • Not measured Cycles. On every row, on every target. Cycles depend on pipeline, flash wait states and bus behaviour, none of which an emulator models.
Flash is .vector_table + .text + .rodata + .data; .bss is excluded because it is RAM. Δ is against the control image on the same target and feature set — the identical harness with the verification removed — so it is the cost of the operation and not of the measurement scaffolding. Stack high-water includes the harness frame below the call site, which is what the control row measures and can be subtracted.
TargetOperationFlash totalΔ flashStack high-waterInstructions / verifyCycles / verify
Cortex-M0+thumbv6m-none-eabi Harness only, no verification control 10,676 B—16 B42 Not measured
Cortex-M0+ LMS verify, 1 level, h=5 w=8 15,860 B+5,184 B1,424 B34,151,578 Not measured
Cortex-M0+ HSS verify, 2 levels h=5 w=8 / h=5 w=8 — RFC 8554 TC1 16,880 B+6,204 B1,568 B66,399,293 Not measured
Cortex-M0+ HSS verify, 2 levels h=10 w=4 / h=5 w=8 — RFC 8554 TC2 16,872 B+6,196 B1,568 B38,711,173 Not measured
Cortex-M4Fthumbv7em-none-eabihf Harness only, no verification control 10,456 B—16 B47 Not measured
Cortex-M4F LMS verify, 1 level, h=5 w=8 15,596 B+5,140 B1,364 B19,273,880 Not measured
Cortex-M4F HSS verify, 2 levels RFC 8554 TC1 16,388 B+5,932 B1,508 B37,142,347 Not measured
Cortex-M4F HSS verify, 2 levels RFC 8554 TC2 16,388 B+5,932 B1,508 B21,806,433 Not measured
x86-64x86_64-unknown-none Harness only, no verification control 8,436 B— Not measuredNot measured Not measured
x86-64 LMS verify, 1 level, h=5 w=8 16,213 B+7,777 B Not measuredNot measured Not measured
x86-64 HSS verify, 2 levels RFC 8554 TC1 17,711 B+9,275 B Not measuredNot measured Not measured
x86-64 HSS verify, 2 levels RFC 8554 TC2 17,711 B+9,275 B Not measuredNot measured Not measured

The x86-64 rows have flash figures and nothing else because there is no runner for that target: QEMU’s -kernel wants a Multiboot-1 32-bit image or a Linux kernel, and the artifact is a 64-bit ELF with neither a Multiboot header nor a long-mode entry stub. The link succeeds, so the sizes are real; nothing ran, so nothing else is reported.

With ML-DSA-44 compiled in

A separate feature set, so a separate control. These Δ figures are against the ML-DSA-capable control image on the same target, not against the LMS-only one above.

Operation: ML-DSA-44 verify, FIPS 204, via the fips204 crate. The LMS and HSS rows also shift by a few hundred bytes when this feature is on; those figures are in bench/RESULTS.md.
TargetFlash totalΔ flashStack high-waterInstructions / verifyCycles / verify
Cortex-M0+ 26,476 B+11,972 B Not measuredThe run timed out after 120 s on a board with 64 KiB of SRAM. Nothing is reported for this row Not measured Not measured
Cortex-M4F 26,452 B+12,164 B74,492 B3,265,304 Not measured
x86-64 25,943 B+13,661 B Not measuredNot measured Not measured
Read the 74,492 B before you plan around ML-DSA on an MCU

That is the stack high-water of one ML-DSA-44 verification on the Cortex-M4F image — over 70 KiB of RAM for the duration of the call, against 1,568 B on the Cortex-M0+ image and 1,508 B on the Cortex-M4F for an HSS verification. It is the figure that decides whether ML-DSA is available to you at all on a part in this class, and it is why the LMS tiers are not a consolation prize.

It is also the figure this rig got wrong once. An earlier version reported 6,228 B for the same operation, stable and reproducible, because the optimiser had inlined the verification into the harness and part of the frame was being allocated above the scan ceiling where the watermark could not see it. The operations are now #[inline(never)] behind an optimisation barrier, and every run reports how much stack sits above the ceiling and rejects the row if it exceeds a 1 KiB allowance. A measurement rig that can be confidently wrong in the flattering direction is worth saying out loud.

Table 3

Specification constants

These are not measurements and will never move into Table 1. They are fixed by the standards, and they are the figures you can safely put in a design document today.

Sources: RFC 8554 §4.1 Table 1, §5.1 Table 2, §6.1; FIPS 204. Spec constant
QuantityValueWhere it comes from
LMS public key56 B4 (LMS type) + 4 (LM-OTS type) + 16 (key identifier) + 32 (root)
HSS public key60 B4-byte level count + the 56-byte LMS key
Root to burn into OTP32 BThe rest of the key can travel with the image and be checked against it
LM-OTS signature, w=81124 B4 + 32 × (34 + 1)
LM-OTS signature, w=42180 B4 + 32 × (67 + 1)
LM-OTS signature, w=24292 B4 + 32 × (133 + 1)
LM-OTS signature, w=18516 B4 + 32 × (265 + 1)
LMS signature, h=5 / w=81292 B4 + 1124 + 4 + 32 × 5
LMS signature, h=10 / w=42508 B4 + 2180 + 4 + 32 × 10
ML-DSA-44 public key1312 BFIPS 204
ML-DSA-44 signature2420 BFIPS 204
Verifier working setA property of the source, not a measurementTwo SHA-256 states, a 34-byte digit buffer, a few 32-byte values — 162 B of it in one bufferThere is no allocator and no alloc. The one-shot entry points ask the caller for nothing; the streaming entry point — the one meant for hardware — takes those 162 bytes from the caller instead, the same size for every parameter set RFC 8554 registers. What this costs in stack bytes is in Table 2
Table 4

Not measured — no figure published

This is the table most vendors would fill in with estimates. It is the reason the other three are worth reading. Every row below is empty on purpose: there is no number, not a provisional one, not a bracketed one, not one in a footnote. If you need a figure from this table to make a decision, the honest answer today is that we cannot give you one — and the second column says what it would take to change that.

The status column has one value, because there is only one honest status for an unmeasured quantity. The reasons are the reasons the bench harness itself records in bench/RESULTS.md.
WhatFigure publishedWhy not, and what it would takePhase
Cycles per verification, any target, any operationNone — not measuredThe firmware probes the cycle counter and reads back unavailable on ARMv6-M and 0 under emulation on ARMv7E-M. QEMU is a functional emulator with no pipeline, wait-state or bus model, so even a non-zero reading would describe the emulator rather than silicon, and the harness refuses it. Needs a part on a bench. The instruction counts in Table 2 are the figures that do transfer2
Wall-clock verify time at 8 / 48 / 120 MHzNone — not measuredFollows from a cycle count, which does not exist. It will not be computed from the host figure, in either direction, nor from an instruction count multiplied by an assumed cycles-per-instruction this project does not have2
Energy per verificationNone — not measuredOn a battery or harvester the cost of verified boot is coulombs, not milliseconds, and this cannot be taken from an emulator at all: it needs a current-sense amplifier across the part’s core supply rail while the verification runs. The table, the procedure and a test that refuses an entry without a stated basis are already written, at bench/src/energy.rs, with every row reading no hardware on this bench2
ML-DSA-44 stack and instructions, Cortex-M0+None — not measuredThe run timed out after 120 s on an emulated board with 64 KiB of SRAM, having got as far as announcing the operation. The flash cost for that target is in Table 2; nothing else about it is2
Stack and instructions, x86-64 kernel targetNone — not measuredNo runner: QEMU’s -kernel takes a Multiboot-1 32-bit image or a Linux kernel, and the artifact is a 64-bit ELF with neither a Multiboot header nor a long-mode entry stub. Flash figures are unaffected and are in Table 22
Flash and stack on a named part, with its memory mapNone — not measuredTable 2 is per instruction set, from a linked image with the bench’s own linker script. A figure for your part needs your memory map, your vector table and your boot requirements3
Verify time for a 1 MB image streamed from external flashNone — not measuredThe storage geometry and read throughput of a real board — a board-level figure, not an algorithm one2
Cost of moving w from 8 to 4, 2 or 1None — not measuredThe instruction-count harness run per parameter set. Until then the w dial is described on the tier page but not advised2
Anything at all on AVR / the 2 KB tierNone — no buildAVR is not among the built targets, so there is not even an image to measure. No figure, and none will be published before there is one2
Boot-time budget impact, end to endNone — not measuredNeeds a bootable image on a chosen part — the figure your product requirements actually care about, and the one furthest from existing3
Cost of adding a log-inclusion check to the boot pathNone — not implementedThe proof size arithmetic on the update log page follows from the structure of a Merkle tree and is labelled there as arithmetic. There is no implementation, so there is no flash or stack figure for it5
Timing side-channel analysisNone — not doneVerification handles only public values, which is the usual reason this is deprioritised. That is not the same as having analysed it, and we are not going to let the first sentence stand in for the second—
Third-party security auditNone — not commissionedAn external review. The test suite in Table 1 is not an audit and is not described as one anywhere on this site—
The commitment None of those rows will be filled with an estimate, a host figure divided by a clock ratio, an instruction count multiplied by a guessed cycles-per-instruction, or a number lifted from a paper about a different implementation on a different part. When one is measured it gets a date, a command and a machine, exactly like the rows in Tables 1 and 2 — and if the measurement is worse than hoped, it gets published at the value it came out at. The rows that moved out of this table since 28 November did so because the harness ran, not because the copy was rewritten.
Reproduce it

The commands

The source is public at github.com/Blocklechain/blockle-os, and this page is web/ in the same repository as the harness, so a figure and the command that produced it move in one commit. A clean checkout needs nothing but rustup; the pinned toolchain installs the three bare-metal targets on the first cargo invocation.

# Correctness: the RFC 8554 Appendix F vectors and the negative tests.
git clone https://github.com/Blocklechain/blockle-os
cd blockle-os

cargo test --workspace
cargo test -p pqverify --features mldsa

# The three exhaustive sweeps. 22,448 verifications for every single-bit
# mutation of the Test Case 1 message and signature, plus the streaming
# verifier's own sweep over every bit of every signature. Release only.
cargo test -p pqverify --release -- --ignored

# The no-panic contract, on all four targets. This is the contract,
# not a style check: if it passes, the panicking constructs are absent.
make lint

# Builds for Cortex-M0+, Cortex-M4F and the x86-64 kernel target.
make build-bare

# The hand-written C header, compiled by a C compiler and called through.
make test-c

# That the compiled accept decision still contains both fault predicates.
make verify-codegen

# The whole measurement sweep: flash, stack high-water, instruction
# counts, host throughput. Writes bench/RESULTS.md, which is where
# every number on this page comes from.
make -C bench measure

# Subsets of the same sweep, if you only want one column:
cargo run --release -p blockle-os-bench -- size        # builds, runs nothing
cargo run --release -p blockle-os-bench -- stack       # the emulated runs
cargo run --release -p blockle-os-bench -- throughput  # host only
What a missing tool costs you

Nothing beyond rustup is needed for make -C bench measure to produce a correct document, because the failure mode of a missing tool is a stated gap rather than a wrong number. What you get depends on what is installed: without qemu-system-arm the flash columns are still real and the stack and instruction columns read not measured; without a C compiler, pkg-config and QEMU’s qemu-plugin.h the stack column is still real and the instruction column reads not measured.

The sweep rebuilds the firmware from source each time and discards any run that does not reach its terminating marker, report a successful verification, report that the painted stack window was not exhausted, and identify itself as the operation and target the driver asked for. A discarded run becomes not measured; it never becomes a number.

On the vectors themselves

The six vector files are the two official test cases from RFC 8554 Appendix F, extracted mechanically from the RFC’s own text — the concatenation of the printed field values in document order, with the ASCII-art and comment columns stripped. They are not generated by this implementation and not derived from it. If a vector fails, the implementation is wrong; the vector is not up for adjustment.

The extraction is cross-checked against facts stated elsewhere in the RFC, so a transcription slip would have surfaced rather than becoming a quietly wrong fixture: both messages decode to exact US Constitution excerpts (the Tenth and Ninth Amendments), and every length matches what the parameter sets named in the vectors’ own typecodes require — 2,644 bytes for Test Case 1’s signature as 4 + 1292 + 56 + 1292, and 3,860 for Test Case 2 as 4 + 2508 + 56 + 1292. A dropped or duplicated hex line breaks both checks.

Between them the two cases exercise h=5 and h=10, w=4 and w=8, both the ls = 0 and ls = 4 checksum shifts, and both parities of Merkle path step. What they do not cover — w=1, w=2, and heights 15, 20, 25 — is stated on the tier page rather than hidden, because RFC 8554 publishes no vector for those and a self-generated one would only prove the code agrees with itself.