Blog · Measurements
What we measured on 5 December 2026
Test counts, a lab check, handshake time and per-message cost for Omni-Encryption 0.8.0, with the machine, the load and the limits next to each number.
What was run
On 5 December 2026 we read the committed source of Omni-Encryption 0.8.0 and ran four things against it: the test suite, the built-in lab check, the benchmark command and a set of size probes.
Everything ran on one Apple M4 Max with 16 cores, macOS 27.2.1, Python 3.12.14 and cryptography 49.0.0. The two peers of every exchange ran inside one process. The machine was under heavy load: the load average ranged from 16 to 63 on 16 cores during the runs. Absolute numbers are therefore low-confidence, and a quiet machine will be faster.
Tests
| Result | Count (5 December 2026) |
|---|---|
| Collected | 501 |
| Passed | 485 |
| Expected failures | 12 |
| Skipped | 3 |
| Failed | 1 |
| Collection errors | 1 |
485 of 501 collected tests pass. The 12 expected failures are tests that record known gaps. The one failure is a consistency check on the source manifest, not a cryptographic test. The one collection error is a test module that needs a sibling package.
In a clean environment with only the cryptography and pytest packages, 470 tests pass and two modules cannot be collected. One needs a sibling maths repository, as in the normal environment. The other, and two more skipped tests, import a sibling package that the package metadata does not list.
The lab check
The redteam command applies 26 tamper, replay and forgery probes: bit flips in the body and the header, a wrong key, a different session, truncation, replay, a skipped sequence number, a storm of forged messages, and forged rekey requests and acknowledgements. All 26 rows held. One row records that ciphertext length reveals plaintext length. It is informational and cannot fail.
Read this result with its limits. The project wrote the probes, they run in one process, and they use sessions that already share a key, with AES-256-GCM. They do not exercise the cascade or the handshake.
The handshake
The hybrid handshake combines X25519 with ML-KEM-1024 and authenticates both peers with ML-DSA-87. With identities already generated, it took a median of 10.4 ms and a 95th percentile of 21.9 ms over 20 iterations. Generating an identity took a median of 1.2 ms over 10 iterations, and setting up an authenticated pair of peers, the handshake plus four cipher endpoints, took a median of 12.2 ms.
The handshake puts 8,819 bytes on the wire: 1,600 bytes of key-exchange data and 7,219 bytes of sender authentication. It happens once per session, not once per message.
Cost per message
| Path | 1 KiB encrypt and decrypt per second (5 December 2026, loaded host) |
|---|---|
| Raw AES-256-GCM | 214,071 |
| Raw ChaCha20-Poly1305 | 150,974 |
| Low-level cipher with the cascade | 8,669 |
| Peer session after the hybrid handshake | 8,851 |
| Second-layer envelope, wrap and unwrap | 31,254 |
In the same process, the package's session path is about 24 times slower than raw AES-256-GCM at 1 KiB. The code is pure Python. Each message also carries extra bytes: 130 with AES-256-GCM alone and 146 with the cascade.
The default cipher with the cascade and the AES-256-GCM session ran within about 2 percent of each other. That suggests Python-level work around the cipher call, not the second cipher, dominates the time. It is an inference, and we did not profile the code.
The July figures
An earlier results file in the project, dated 17 July 2026, shows a handshake median of 12.1 ms and about 19 thousand round trips per second at 1 KiB, against 401 thousand for raw AES-256-GCM: about 21 times slower. It was taken on a different machine and an earlier code state, before the cascade became the default of the low-level cipher, and it does not record the host's load.
We treat it as an older, dated comparison. The ratio moved from about 21 to about 24 between the two files, but with a different machine, different code and an unrecorded load, we do not read that as a trend, and we do not quote either as a fixed ratio.
What these numbers do not say
- They are not network throughput. The package has no network transport, and both peers run in one process.
- They include no concurrency test, no side-channel or constant-time measurement, and no fuzzing beyond the listed probes.
- The ML-KEM and ML-DSA implementations come from the cryptography package and were not examined.
- No independent party took part, and the project's own notes say its numbers are not a service level.
Repeat the measurements
With the source tree, Python 3.12 and cryptography 49.x, three commands repeat the lab check, the handshake demonstration and the benchmark.
PYTHONPATH=src python3.12 -m aios_omni_encryption redteam
PYTHONPATH=src python3.12 -m aios_omni_encryption handshake-demo
PYTHONPATH=src python3.12 -m aios_omni_encryption benchThe technical paper has the full method and the evaluation manual describes what each command prints. Quote your own conditions beside your own numbers.