← Back to section · Open Source Projects
Benchmarking and Testing Picks: Open-Source Instruments That Weigh and Examine Cryptographic Implementations
Choosing a cryptographic implementation rests half on performance and half on correctness. This article selects two kinds of open infrastructure: benchmarking projects that weigh implementations (pqm4, SUPERCOP) and testing projects that examine them (Wycheproof, ACVP), and explains their use in post-quantum evaluation.
When choosing a post-quantum implementation, people ask for two numbers first: how fast, and how much memory. If those numbers come from the implementer’s own demo code, they are nearly worthless — change the test conditions, compiler options, or code provenance, and the numbers stop being comparable. The cryptographic engineering community solves this not by self-discipline but by infrastructure: benchmark and test projects maintained by neutral parties. This article selects four representatives that form two lines: weighing and examining.
The Embedded Weighing Station: pqm4
pqm4 is a post-quantum benchmarking framework for ARM Cortex-M4 microcontrollers. Its methodology has two key points. First, every implementation under test comes from PQClean’s clean code base, ensuring the comparison measures the algorithms themselves rather than whose assembly optimization is more aggressive. Second, measurements run on real hardware and report speed, stack usage, and code size together, because in embedded settings any one of the three exceeding its budget is disqualifying.
The project’s weight becomes clear in the context of IoT devices and smart cards: post-quantum key and signature sizes dwarf classical ones, and figures that are painless on a desktop become a life-or-death line on a device with tens or hundreds of kilobytes of memory. When NIST evaluated candidates’ embedded performance during standardization, data from frameworks like pqm4 was among the important inputs. For engineers selecting algorithms for devices, it remains a first-hand reference.
The Cross-Platform Archive: SUPERCOP
SUPERCOP is the core component of the eBACS benchmarking effort, a framework for measuring cryptographic software performance that has operated for many years. Its approach is to place a large collection of implementations into one automated measurement process — uniformly compiled and uniformly timed across many machines — and to settle the results into a long-term, consultable performance archive. When researchers propose a new implementation, running it through this framework yields numbers comparable with the historical record.
The value of such projects grows with time: a single benchmark run answers only 「how fast now」, while a long-term archive answers 「how much has this implementation family improved over the years, and at what cost」. It also teaches a fact that is often overlooked: a performance figure divorced from its test conditions is noise, and serious benchmarking is half measurement, half writing the measurement conditions down clearly.
The Health Examination: Wycheproof
If benchmarks measure fitness, Wycheproof measures health. It is an open-source test-vector project started at Google, collecting large numbers of test cases aimed at historically real attacks: malformed encodings, boundary conditions, missing parameter validation, and the classic traps of particular curves and padding schemes — every vector corresponds to a class of error that has actually occurred. Running a cryptographic library against it is like giving it a targeted full-body examination.
The project has proven its value in action: it has uncovered genuine flaws in several widely used cryptographic implementations and driven their fixes. For an evaluator, 「passed all Wycheproof vectors」 is no guarantee of absolute security, but 「never ran them, or fails them」 is unmistakably a danger signal. As post-quantum implementations enter mainstream libraries, bringing the new algorithms’ implementations under this kind of examination is an evolution this site is glad to watch for.
Testing as Institution: ACVP
ACVP (the Automated Cryptographic Validation Protocol) advances testing from 「download vectors and run them yourself」 to 「interact under a protocol」. Promoted by NIST with an open reference implementation, it has the implementation under test act as a client communicating with a test server: the server issues test vectors, collects results, and renders verdicts, allowing large-scale, standardized validation to run automatically. This protocol is one of the foundational channels for automating FIPS 140-3 validation testing.
For general readers, ACVP’s significance is what it reveals about the industry: a cryptographic module’s 「compliance」 is not a self-declaration but something earned through repeatable, auditable test procedures. As post-quantum algorithms enter the certification system, implementations of ML-KEM and ML-DSA must pass through the same channel — understanding its shape early helps explain why timelines for standards adoption are measured in years.
Four Disciplines for Reading Benchmark Numbers
We close the selection with a set of disciplines for general readers, because benchmark data gains its value only in the reading. First, conditions before numbers: which hardware, which compiler, which optimizations — without matching conditions, figures are incomparable, and responsible benchmark projects print these beside the results. Second, distributions, not single points: serious measurement reports medians and variance over repeated runs, and a figure quoting only the best run should be discounted by default. Third, code provenance: whether the implementation under test is the reference or an optimized version, from which repository and which release, decides how far the number generalizes. Fourth, time: performance data expires as implementations iterate, and citing it with a date and version is basic respect for the reader.
These four disciplines apply equally to every comparison chart in a vendor keynote. Once they become habit, you will find that most vague performance marketing fails at the very first one. And that is exactly what makes projects like pqm4 and SUPERCOP valuable: they lay conditions, distribution, provenance, and time out in the open, letting the numbers withstand inspection on their own.
Use Both Lines Together
The relationship between benchmarking and testing is that of an athlete’s fitness test and medical report: fitness data alone may select an implementation that runs fast but carries a hidden condition; a medical report alone does not tell you whether it can bear a real load. When this site evaluates any implementation project, it asks both sets of questions: how does it perform in neutral frameworks such as pqm4 and SUPERCOP, and has it passed adversarial vector suites such as Wycheproof and entered institutional validation tracks such as ACVP? An evaluation stands only when both questions have publicly checkable answers. That is exactly why these four projects are selected together: combined, they are the weights and measures of cryptographic engineering.
Tags: BenchmarkingCryptographic TestingOpen Source Picks