How fast is ML-KEM-768 on common hardware, and what do the sources actually measure?
If you are sizing a TLS or VPN endpoint, or a device, that will run ML-KEM-768, the headline figures from the sources are as follows. In the wolfSSL 5.8.0 benchmark published on 13 May 2025, an unnamed x86_64 Linux PC reached 163900 ML-KEM-768 key generations, 152500 encapsulations and 200700 decapsulations per second. In the wolfSSL STM32 benchmark on a Cortex-M4 at 168 MHz, the same algorithm reached 153.386 key generations and 152.174 encapsulations per second, with decapsulations at 120.000 per second. This table is used by capacity planners who need throughput per server core and by firmware engineers who need to know whether a microcontroller can keep up with a handshake rate.
These are single-vendor, single-run figures, and they are not directly comparable across rows. The x86_64 result comes from a wolfSSL-run comparison in which wolfSSL itself says the test is not apples-to-apples against OpenSSL 3.5. The STM32 result was built with assembly optimizations but no hardware-accelerated cryptography, and the source does not state a wolfSSL version for it. The sources do not measure ML-KEM against X25519 on the same platform, so you cannot read a relative cost of the post-quantum exchange from these tables alone. Confirm the library version, build flags and hardware you actually deploy before relying on any figure.
The pq-crystals Kyber cycle counts for the Intel Core i7-4770K (Haswell) are pre-standard figures for the Kyber submission, not ML-KEM, and the page as fetched shows no date. Use them only as a historical reference for the family's cost, not as a sizing input. For the closest current comparison, check the wolfSSL benchmarks page and the vendor documentation for your own stack, and measure your own endpoints under representative load.
ML-KEM operations per second by parameter set and platform
This table lists operations per second for key generation, encapsulation and decapsulation for each ML-KEM parameter set on two platforms: an x86_64 Linux PC tested with wolfSSL 5.8.0 on 13 May 2025, and an STM32 Cortex-M4 at 168 MHz. Read each row across to compare the three operations within one platform, and read down a column to see how security level affects speed. Figures from different vendors and platforms are not directly comparable, so use the table to size one environment at a time. The main takeaway is that on the PC, decapsulation for ML-KEM-768 and ML-KEM-512 runs faster than key generation for ML-KEM-1024, while on the Cortex-M4 each step slows as the parameter set grows.
| Parameter set | Platform | Key generation per second | Encapsulation per second | Decapsulation per second | Source |
|---|---|---|---|---|---|
| ML-KEM-512 | x86_64 Linux PC, wolfSSL 5.8.0 (13 May 2025) | About 293,900 | About 271,900 | About 237,300 | wolfSSL vs OpenSSL ML-KEM benchmark |
| ML-KEM-768 | x86_64 Linux PC, wolfSSL 5.8.0 (13 May 2025) | About 163,900 | About 152,500 | About 200,700 | wolfSSL vs OpenSSL ML-KEM benchmark |
| ML-KEM-1024 | x86_64 Linux PC, wolfSSL 5.8.0 (13 May 2025) | About 109,200 | About 106,200 | About 143,600 | wolfSSL vs OpenSSL ML-KEM benchmark |
| ML-KEM-512 | STM32 Cortex-M4 at 168 MHz | About 248 | About 262 | About 198 | wolfSSL STM32 ML-KEM and ML-DSA benchmark |
| ML-KEM-768 | STM32 Cortex-M4 at 168 MHz | About 153 | About 152 | About 120 | wolfSSL STM32 ML-KEM and ML-DSA benchmark |
| ML-KEM-1024 | STM32 Cortex-M4 at 168 MHz | About 93 | About 93 | About 76 | wolfSSL STM32 ML-KEM and ML-DSA benchmark |
How to read a cycle count and an operations-per-second figure
The figures on this page come in two units, and they cannot be compared directly. The cycle counts for the Kyber AVX2 code are the number of processor cycles taken on one core of an Intel Core i7-4770K (Haswell) to complete one operation. Lower is faster, and the count does not depend on clock speed, so the same count at a higher clock finishes sooner. The operations-per-second figures come from wolfSSL benchmark runs of about one second each, so the number is how many complete operations finished in that window. Higher is faster. Check which unit a row uses before setting one row beside another, and check which library, version and build flags produced it.
The ML-KEM parameter sets and their security levels are defined in RFC 9935, Appendix B, Table 1. ML-KEM-512 is assigned security level 1, ML-KEM-768 is assigned level 3 and ML-KEM-1024 is assigned level 5. The same table gives the encapsulation key, decapsulation key and ciphertext sizes for each set, which matter when you read a speed figure against a message or memory budget. The appendix says levels 1, 3 and 5 are comparable to or greater than the strength required for key search on AES-128, AES-192 and AES-256. Use these levels when you choose a parameter set, and confirm the mapping in the RFC rather than relying on this summary.
Each operation type has its own rate. Key generation, encapsulation and decapsulation are separate columns, and a figure for one does not predict the others. In the wolfSSL runs, decapsulation is sometimes faster than encapsulation and sometimes slower, depending on the parameter set and the library, so do not assume the ordering holds elsewhere. A TLS handshake performs a key generation on one side and an encapsulation or decapsulation on the other, along with signing and certificate work that these tables do not cover. Treat these rows as inputs to a capacity estimate for one operation, and build the handshake figure from your own measurements in your own environment.
Before you use any row, confirm three things. The first is the library version and build options, because the wolfSSL and OpenSSL runs used different flags and wolfSSL states its comparison is not apples-to-apples. The second is the hardware, since the Haswell cycle counts, the x86_64 PC runs and the STM32 Cortex-M4 runs are not the same class of device. The third is the date, because some sources here are undated or refer to pre-standard Kyber rather than the final ML-KEM. Where a figure cannot be tied to a version, date and platform, ask the source for those details or measure it on your own hardware.
Where ML-KEM speed limits a server or a device
The operation rates below bear on how many key exchanges a server or device can complete per second. Each card names the figure it uses and its source, and none of the sources measure a full TLS or other protocol handshake, so treat these as upper bounds on the key-exchange step alone.
Connections per second on a TLS terminator
A TLS terminator performs ML-KEM decapsulation for each incoming hybrid or pure post-quantum key share, and encapsulation only when it acts as a client to an upstream service. The wolfSSL comparison on an unnamed x86_64 Linux PC (13 May 2025, wolfSSL 5.8.0) reports about 237300 ML-KEM-512 decapsulations per second and about 200700 ML-KEM-768 decapsulations per second. Those are single-core, single-test figures from one vendor, so confirm them on the processor and TLS stack you run. Check the number of cores the terminator uses and whether your library build enables the assembly optimizations the test used.
wolfSSL vs OpenSSL benchmarkHandshake rates on a Cortex-M4 device
On an STM32 NUCLEO-F439ZI (Arm Cortex-M4 at 168 MHz), wolfSSL measured ML-KEM-768 at 153.386 key generations, 152.174 encapsulations and 120.000 decapsulations per second, against 84.646 ECDH P-256 agreements per second on the same board. The post built wolfSSL with assembly optimizations but no hardware-accelerated cryptography and did not state a wolfSSL version, so the rates may not match your firmware. For a constrained device, the decapsulation rate sets how many incoming key shares it can answer per second, and the rest of the handshake, including certificate verification and record protection, is not measured here.
wolfSSL STM32 benchmarkKey generation cost for short-lived clients
Clients that open a connection, send one request and close it generate a fresh ML-KEM key pair each time, so key generation is paid on every session. The same STM32 Cortex-M4 test measured ML-KEM-512 key generation at 248.000 per second and ML-KEM-1024 at 93.254 per second. On a server, the wolfSSL x86_64 figures show ML-KEM-768 key generation at 163900 per second for wolfSSL 5.8.0. Check whether your client library reuses key pairs across sessions, because that choice changes how often this cost is paid.
Gap between wolfSSL and OpenSSL figures
On the same 13 May 2025 x86_64 test, wolfSSL 5.8.0 reported 163900 ML-KEM-768 key generations per second, against 31811 for OpenSSL 3.5, and 152500 encapsulations against 55855. The wolfSSL post says the comparison is not apples-to-apples, because OpenSSL was built with a plain Configure while wolfSSL used assembly and cache options. Do not read the gap as a measure of the libraries in production. Rerun the test on your own processor with the build options you deploy.
Benchmark methodologyPre-standard Kyber cycle counts
The pq-crystals Kyber page reports cycle counts for one Haswell core, including 52732 cycles for Kyber-768 AVX2 key generation and 53156 cycles for decapsulation. These figures come from the pre-standard Kyber submission, not ML-KEM, and the page shows no date. Use them to compare relative costs between parameter sets, and do not use them as ML-KEM capacity figures for a deployed system.
pq-crystals Kyber pageML-KEM-512, ML-KEM-768 and ML-KEM-1024 speed figures
ML-KEM-512 is assigned security level 1 by RFC 9935, Appendix B, which says levels 1, 3 and 5 are comparable to or greater than the strength required for key search on AES-128, AES-192 and AES-256. The sources listed here record speed for this set in two places: an unnamed x86_64 Linux PC tested on 13 May 2025, and an STM32 NUCLEO-F439ZI (Arm Cortex-M4 at 168 MHz).
- x86_64 PC, wolfSSL 5.8.0: about 293,900 key generations, 271,900 encapsulations and 237,300 decapsulations per second.
- x86_64 PC, OpenSSL 3.5: about 47,317 key generations, 72,114 encapsulations and 46,625 decapsulations per second, built with a plain Configure.
- STM32 Cortex-M4 at 168 MHz: about 248.000 key generations, 262.000 encapsulations and 198.000 decapsulations per second.
- Test conditions: the wolfSSL x86_64 build used --enable-mlkem=yes,cache-a --enable-dilithium --enable-all-asm, and wolfSSL states the comparison with OpenSSL is not apples-to-apples.
- Pre-standard Kyber: the pq-crystals Kyber page reports Kyber-512 AVX2 cycle counts on an Intel Core i7-4770K, but those are pre-standard figures, not ML-KEM, and are not comparable to these rows.
Before relying on these numbers, confirm the exact library version, build flags and compiler on your own target, since the wolfSSL STM32 post did not state a wolfSSL version.
ML-KEM-768 is assigned security level 3 by RFC 9935, Appendix B, which places it in the same comparability statement as levels 1 and 5 against AES-192 key search. The sources listed here record its speed on the same x86_64 PC test from 13 May 2025 and on the STM32 Cortex-M4 at 168 MHz, and the June 2026 wolfSSL vs MbedTLS post adds one Intel i9-11950H result.
- x86_64 PC, wolfSSL 5.8.0: about 163,900 key generations, 152,500 encapsulations and 200,700 decapsulations per second.
- x86_64 PC, OpenSSL 3.5: about 31,811 key generations, 55,855 encapsulations and 35,390 decapsulations per second.
- STM32 Cortex-M4 at 168 MHz: about 153.386 key generations, 152.174 encapsulations and 120.000 decapsulations per second.
- Intel i9-11950H, wolfCrypt, June 2026: about 176,138 encapsulations per second, measured with GCC 12.2 and wolfSSL v5.9.1 built with --enable-intelasm --enable-sp=yes,asm.
- Comparison context: on the same STM32 board, wolfSSL measured ECDH P-256 agreement at 84.646 operations per second, so the two can be compared only within that one source.
Confirm the library version, build options and test date that match your deployment, because the x86_64 and STM32 rows come from different sources and conditions.
ML-KEM-1024 is assigned security level 5 by RFC 9935, Appendix B, which compares it with the strength required for key search on AES-256. The sources listed here record its speed on the same 13 May 2025 x86_64 PC test and on the STM32 Cortex-M4 at 168 MHz, and it is the slowest of the three sets on both platforms in the recorded figures.
- x86_64 PC, wolfSSL 5.8.0: about 109,200 key generations, 106,200 encapsulations and 143,600 decapsulations per second.
- x86_64 PC, OpenSSL 3.5: about 20,942 key generations, 42,164 encapsulations and 27,043 decapsulations per second.
- STM32 Cortex-M4 at 168 MHz: about 93.254 key generations, 92.520 encapsulations and 76.172 decapsulations per second.
- Mixed units: the wolfSSL benchmarks page mixes units such as MB/s, MiB/s, KB/s and ops/sec across platforms, so its ML-KEM-1024 rows are not directly comparable with these tables.
- No June 2026 figure here: the June 2026 Intel i9-11950H post reports only ML-KEM-768 encapsulation in the figures supplied for this topic.
When sizing for ML-KEM-1024, ask the library vendor for results on your exact processor and build, and repeat the measurement on your own hardware.
How to use these figures before you size a deployment
This sequence turns the speed figures on this page into a sizing decision for your own platform. It confirms which parameter set and build you are measuring, matches your hardware to a comparable row, and ends with a measured comparison against X25519 on the machines you will actually run. The output is a set of operations per second you have verified, not a figure copied from a table.
Confirm the parameter set and library version
Identify which ML-KEM parameter set you run (ML-KEM-512, ML-KEM-768 or ML-KEM-1024) and the exact version of the library that implements it. The security levels differ: the RFC assigns levels 1, 3 and 5, and each set has different key and ciphertext sizes, so a speed figure for one set does not describe another. Write down the version string from your build or package manager. The step is complete when you can name the set and the version on one line, and the library vendor's documentation confirms that version includes ML-KEM.
Match your platform to a table row
Find the row on this page whose processor and operating environment are closest to yours, including the core family, clock speed and whether the target is a server, desktop or embedded microcontroller. Treat the match as approximate. Rows come from different test setups, and the sources do not always state the same details. The step is complete when you have one or two candidate rows and you have noted any difference you cannot account for, such as a different instruction set or a board you have not seen tested.
Check the build flags against the source
Compare the compile options used in the source benchmark with the options in your own build. Assembly and cache options can change results substantially, and some sources state flags such as --enable-all-asm or --enable-mlkem=yes,cache-a while others build with a plain configuration. If your flags differ from the source, the published figure is not a direct estimate of your performance. Record the flags you use alongside your version so the measurement in the next step can be reproduced later. The step is complete when you have a written list of matching and differing options.
Run the operations on your own hardware
Measure key generation, encapsulation and decapsulation on the hardware you plan to deploy, using the parameter set and build confirmed in the earlier steps. Run each operation many times over a fixed interval and record operations per second, with the same measurement method for each. Repeat the run to see how much the figure varies. The step is complete when you have a stable figure for each operation and a note of the machine, OS, library version and build flags used.
Compare the results against X25519 on the same hardware
Run X25519 key agreement on the same machine, under the same conditions and measurement method as the ML-KEM runs. The sources on this page report ML-KEM and X25519 at different security levels and with different key sizes, so the comparison shows the relative cost on your platform rather than a like-for-like security trade. The step is complete when you have two sets of figures from one machine that you can put side by side, with the difference expressed in your own units.
Ask your library vendor for figures on your build
Send your vendor the parameter set, version, platform and build flags you use, and ask for performance figures measured on a build matching yours. Ask whether the figures were measured under a named test setup and date, and whether any hardware acceleration was enabled. Compare the vendor's answer with your own measurements, and ask them to explain any gap. The step is complete when you hold a written response from the vendor that states the conditions of its figures, and your own measurements agree with it within a range you accept.
What these speed figures do not show
The Kyber cycle counts on the pq-crystals page are for the pre-standard Kyber submission, not for ML-KEM as standardized in RFC 9935, and the page as fetched shows no date. Kyber-768 AVX2 figures on an Intel Core i7-4770K (Haswell) core are useful for sense of scale, but the algorithm and implementation differ from what a current ML-KEM library runs. Confirm which ML-KEM version and build your library uses before treating any Kyber number as a proxy for it.
The wolfSSL comparison against OpenSSL 3.5 is not apples-to-apples, and wolfSSL says so itself. The wolfSSL build used --enable-mlkem=yes,cache-a --enable-dilithium --enable-all-asm, while OpenSSL 3.5 was built with a plain Configure. The test ran on an unnamed x86_64 Linux PC on 13 May 2025, so the hardware cannot be identified or reproduced. Treat the gap between the two libraries as a result of configuration and tuning as much as of the implementations, and rerun both on your own hardware with matching build options.
The wolfSSL benchmarks page mixes units (MB/s, MiB/s, KB/s and operations per second) and omits test dates for most rows, so its results cannot be ranked against each other or against the STM32 and wolfCrypt figures in this table. Where a row states an ML-KEM rate, check the unit, the version and the date before using it. Keep in mind that a per-operation rate is not an end-to-end handshake time: key generation, encapsulation and decapsulation are only part of a TLS exchange, which also includes certificate handling, signatures, network round trips and application work. Measure a full handshake on your own stack before sizing capacity from these figures.
Common questions about ML-KEM speed
How many ML-KEM-768 operations per second can a CPU do?
It depends heavily on the implementation and the processor, so no single number applies. On an Intel i9-11950H tested in June 2026, wolfCrypt performed 176,138 ML-KEM-768 encapsulations per second (wolfSSL vs MbedTLS, 26 June 2026). In a May 2025 test on an unnamed x86_64 Linux PC, wolfSSL 5.8.0 reached 163,900 key generations, 152,500 encapsulations and 200,700 decapsulations per second, while OpenSSL 3.5 reached 31,811, 55,855 and 35,390 (wolfSSL vs OpenSSL ML-KEM benchmark). These figures come from different machines and vendor-run tests, so treat them as reference points. Measure the library and hardware you plan to use.
Is ML-KEM faster than X25519?
The sources listed on this page do not give a same-platform comparison between ML-KEM and X25519, so this page cannot say which is faster. X25519 uses 32-byte keys and a 32-byte shared value and is intended for the roughly 128-bit security level (RFC 7748). ML-KEM-768 is assigned security level 3, with a 1184-byte encapsulation key and a 1088-byte ciphertext (RFC 9935). Because the key and ciphertext sizes differ, bandwidth and buffer costs will differ even where operation rates are similar. To compare speed, run both key exchanges on your own target hardware with the same library and build settings.
How do Kyber cycle counts relate to ML-KEM?
Kyber was the pre-standard submission that ML-KEM is derived from, and the cycle counts on the pq-crystals page are for Kyber, not ML-KEM. The pq-crystals page lists Kyber-768 AVX2 at 52,732 cycles for key generation, 67,624 for encapsulation and 53,156 for decapsulation on one core of an Intel Core i7-4770K (Haswell). The page shows no date, and these are not ML-KEM figures, so do not apply them to ML-KEM directly (pq-crystals Kyber page). For ML-KEM cycle counts, check the specification and the documentation of the library you deploy, and confirm which parameter set and build options each figure uses.
What do the STM32 ML-KEM numbers mean?
They are operation rates measured by wolfSSL on an STM32 NUCLEO-F439ZI, an Arm Cortex-M4 running at 168 MHz. On that board, wolfSSL measured ML-KEM-768 at 153.386 key generations, 152.174 encapsulations and 120.000 decapsulations per second, and ECDH P-256 agreement at 84.646 per second. For ML-KEM-512 it measured 248.000, 262.000 and 198.000 per second, and for ML-KEM-1024 it measured 93.254, 92.520 and 76.172 per second (wolfSSL STM32 ML-KEM and ML-DSA benchmark). The post built wolfSSL with assembly optimizations but no hardware-accelerated cryptography and did not state a wolfSSL version, so the results are not a general figure for STM32 devices. Confirm the version, build options and clock settings for your own firmware.
How do I measure ML-KEM speed on my own hardware?
Benchmark the exact library, version, build options and processor you will deploy, and run every algorithm you compare under the same conditions. Record the version and compiler flags, the processor model and clock settings, and whether hardware acceleration or assembly code is enabled. Report results as operations per second for each of key generation, encapsulation and decapsulation, and state the test duration and block size used. Compare the key and ciphertext sizes alongside the timings, because the two can pull a design in different directions. The sources in this section report results in different units and under different settings, so they cannot be combined into one table without re-running the tests.
Why do published ML-KEM benchmark results vary so much?
Published results differ because the library, its version, the compiler, the build flags and the processor all change the outcome. The wolfSSL vs OpenSSL comparison on a May 2025 x86_64 Linux PC shows wolfSSL 5.8.0 well ahead of OpenSSL 3.5, and wolfSSL states the two builds are not apples-to-apples because they were configured differently (wolfSSL vs OpenSSL ML-KEM benchmark). The wolfSSL benchmarks page also mixes units such as MB/s, MiB/s, KB/s and ops/sec, and gives no test dates for many of its rows (wolfSSL benchmarks page). Read any single figure as one configuration's result, not as a property of the algorithm.
How DeployOpen works on this
DeployOpen scopes, builds and hands over work on ML-KEM key generation, encapsulation and decapsulation speed inside your own infrastructure. Each engagement starts with a written scope that names the processors, platforms and workloads to measure, so the results can be checked against your environment.
How we scope
- Engagements are fixed-scope, with the operations, parameter sets and hardware to measure agreed in writing before work starts.
- We confirm which ML-KEM parameter set (512, 768 or 1024) your systems use, since each has different key and ciphertext sizes.
- We record the library and version to benchmark, because published speed figures vary with build flags and assembly support.
How we build
- We deploy the chosen ML-KEM implementation in your cloud accounts, data centers or air-gapped networks.
- We run key generation, encapsulation and decapsulation benchmarks on your target processors and compare them against X25519.
- We test each result on the same hardware and build settings, so that numbers from different platforms are not mixed together.
How we hand over
- You receive documentation of the test environment, library version, build flags and the measured operations per second.
- Each reported figure is labeled with the processor, the parameter set and the date it was measured.
- Your security and platform teams get the evidence they need to review the results and repeat the tests themselves.
How we support
- Ongoing support, library upgrades and continuous re-testing are available as retainers after handover.
- We retest when you change processors, upgrade the ML-KEM library or move workloads to new hardware.
- To get a quote, ask for the written scope, deliverables and the timeline for your specific processors and platforms.

