← Back to section · Software & Developer Tools

How PQC Performance Numbers Are Actually Measured: Cycle Counts, SUPERCOP, and Why Papers Disagree

The same algorithm can look twice as fast in one paper as in another — and usually the algorithm is not the problem; the measurement is. This article takes apart how PQC benchmarking really works: why cycles are counted instead of seconds, how SUPERCOP turns measurement into a specification, which variables destroy comparability, and why embedded platforms keep a separate ledger.

Published 22 November 2026 · 6 min read · PQ Frontier

How PQC Performance Numbers Are Actually Measured: Cycle Counts, SUPERCOP, and Why Papers Disagree
AI-generated site artwork
Video explainer · PQC testing: the gates an implementation must pass

At algorithm selection meetings someone always asks: “How fast is ML-KEM, really?” — and produces two papers whose numbers differ by nearly a factor of two. In most cases neither side measured wrong; they simply did not measure the same thing. PQC performance numbers depend heavily on the measurement method itself: which unit, on which machine, which implementation version, under which statistical convention. This article takes that method apart, so that before you cite any benchmark figure you know which questions to ask.

The Unit Is Cycles, Not Seconds

The mainstream unit in cryptographic benchmarking is the CPU cycle count. The reason is simple: wall-clock time (seconds, milliseconds) moves with clock frequency — turbo boost, power-saving downclocking and thermal limits make the same code produce different times at different moments, and laptops and servers are not comparable at all. A cycle count isolates “how many clock cycles does this operation need”, decoupled from the frequency of the moment, so cross-machine comparisons at least share a common ruler.

The measuring instruments vary by platform: on x86 the timestamp counter (RDTSC) or the performance monitoring unit is commonly used; on ARM, the PMU cycle counter. Either way, several shared pitfalls must be handled: the read overhead of the counter itself must be subtracted or amortised; a single run is too short, so noise dominates — the standard practice is many repetitions with a statistic taken; and the compiler must be prevented from optimising away benchmark code whose result is discarded — benchmarking nothing at all is the classic failure mode of the field.

SUPERCOP: Turning Measurement into a Specification

SUPERCOP is the benchmarking suite maintained by the eBACS project (ECRYPT Benchmarking of Cryptographic Systems), long maintained by Daniel J. Bernstein, Tanja Lange and collaborators, with results published at bench.cr.yp.to. What it does, in essence, is lay down the rules:

  • A uniform interface: implementations plug into the suite through a prescribed API, and key generation, encapsulation/decapsulation and sign/verify are timed separately;
  • Uniform compilation: the suite automatically tries multiple compilers and flag combinations on the target machine and records the result of each configuration;
  • Uniform reporting: results are aggregated in a fixed format, noting the machine, CPU model and implementation version, downloadable and reproducible by anyone.

During the NIST post-quantum standardisation process, the performance data submitted by candidate teams drew heavily on this tradition, and submission packages generally shipped reproducible benchmarking scripts. SUPERCOP’s significance is not that it measures “most accurately”, but that it gives results from different teams and different years a shared coordinate system — a lone number outside any coordinate system carries almost no information.

Why Two Papers Disagree

In order of frequency, there are six common causes:

  1. Different implementation versions: a reference implementation (portable C written for readability) and an optimised one (AVX2/NEON assembly, hand-vectorised code) routinely differ by a factor of 2–5. Paper A measures the reference, paper B the optimised version, and the conclusions flip.
  2. Different compilers and flags: GCC vs Clang, -O3 vs -Os, whether -march=native is on — all significantly affect the code quality of the polynomial arithmetic at the heart of lattice schemes.
  3. Different parameter sets: ML-KEM-512 and ML-KEM-1024 cycle counts differ by more than a grade; a figure that says “ML-KEM speed” without naming the parameter set is unusable.
  4. Different timing conventions: cycles vs seconds, median vs minimum, whether randomness generation and key loading are included — different conventions, different numbers.
  5. Different machine states: turbo on or off, hyperthreading disabled or not, process pinned to a core or not — laboratories rarely match on all of these.
  6. The cost of constant-time code: side-channel-resistant constant-time implementations are usually slower than “as fast as possible” versions; comparing an experimental optimised build against a constant-time one is unfair to the latter and meaningless for deployment.

So when you read a performance claim, first locate its coordinates on this list, then decide how much of it to believe.

What Reports Usually Don’t Tell You

A few more variables rarely appear in the body of a paper yet materially move the numbers. First, the execution environment: benchmarking on a shared cloud host lets neighbour load and virtualisation overhead systematically inflate and jitter cycle counts; serious benchmarks are collected on dedicated hardware or in an explicitly stated virtual environment. Second, the start and end points of the measurement: does key generation include waiting for randomness? Does decapsulation timing include input format validation? Teams answer differently by default, and on small parameter sets the difference reaches double-digit percentages. Third, warm-up and caches: the first run loads code and data into cache, so the norm is to discard warm-up rounds and only count steady-state data; a report that does not state this may owe its “minimum” to a fully warm cache and its “average” to cold-start pollution. Fourth, the handling of randomness: signing and encapsulation consume randomness, and a true entropy source would mix its own speed into the timing; benchmark frameworks therefore typically switch to a deterministic pseudorandom source for reproducibility, and specifications such as SUPERCOP prescribe exactly this. Run these four checks mentally over any report and most “anomalous numbers” explain themselves.

Embedded Platforms Keep a Separate Ledger

The cycle-count contest on desktops largely changes subject on embedded platforms: the pqm4 project built a PQC benchmarking framework for the ARM Cortex-M4 that reports three classes of metrics at once — cycle counts, stack usage (RAM) and code size (flash). On a microcontroller, “how fast” usually ranks behind “does it fit, and does the stack overflow”: an implementation that is 20% faster but doubles its stack requirement is simply disqualified on a chip with a few dozen KB of RAM. An embedded report missing the latter two figures is equally incomplete.

A Checklist Before Citing Any Number

  • Is the unit cycles or seconds? If seconds, are the machine’s frequency and turbo state documented?
  • Is the implementation a reference or an optimised one? Which instruction-set extensions does it use?
  • Are the compiler, its version and the key flags on record? Is the benchmark script public and reproducible?
  • Is the parameter set named? Is the statistic a median, a minimum or a mean?
  • Is the implementation constant-time? Are the things being compared of the same kind?
  • For embedded targets, are stack usage and code size reported alongside speed?

Ask these six questions and most “twice as fast” headlines deflate into usable engineering information.

References

Tags: benchmarkingSUPERCOPcycle counting