native maximum speed · languages · transports · architectures · interop
Real measured throughput across every language robobus targets and every transport it bridges: decode speed, crypto seal/open, transport frame rate, and the full transport × language product, plus a portability proof that the whole stack conforms on every CPU architecture. Every cell runs on a real toolchain; unprovisioned cells say why.
interactive · build your config · read the spec
Choose every axis, language, KEM, signature, AEAD cipher, hash, keystore KDF, transport, and this composes a full performance specification from the real measurements on this page: session handshake, per-message envelope, transport rate, keystore-unlock cost, and the end-to-end pipeline, alongside the NIST level and standards your combo satisfies. It's the spec sheet you'd hand to a competitor for a head-to-head. Two smart presets: Fastest possible (lowest latency, any security) and Most secure + fast (NIST-5 everywhere, then the fastest option within that level, equivalent NIST classes count as equally secure). The NIST-level buttons set the standard ML-KEM + ML-DSA suite at that category (only 1/3/5 have ML-KEM parameter sets); CNSA 2.0 is a separate NSA profile (same PQC primitives but SHA-384, not the Cat-5 SHA-512).
compliance · indicated methods per regime
Read the matrix for speed, then read this for fit. Each row stipulates the methods a given compliance regime indicates; choose them in the configurator and it reports the exact NIST category, whether the selection meets CNSA 2.0, the length-extension caveat, and the measured cost. Equivalent NIST categories are equally strong, so within a category the pick is a speed decision, not a security one.
| Regime | KEM | Signature | AEAD | Hash | KDF / keystore |
|---|---|---|---|---|---|
| NIST Level 1 | ML-KEM-512 | ML-DSA-44 | AES-256-GCM | SHA3-256 | HKDF / Argon2id keystore |
| NIST Level 3 | ML-KEM-768 | ML-DSA-65 | AES-256-GCM | SHA3-256 / SHA-384 | HKDF / Argon2id keystore |
| NIST Level 5 | ML-KEM-1024 | ML-DSA-87 | AES-256-GCM | SHA-512 / SHA3-512 | HKDF / Argon2id keystore |
| CNSA 2.0 | ML-KEM-1024 | ML-DSA-87 | AES-256-GCM | SHA-384 | HKDF-SHA384 (the NSA suite) |
| FIPS (approved algs) | ML-KEM 512/768/1024 | ML-DSA / SLH-DSA | AES-256-GCM | SHA-2 / SHA-3 | HKDF / PBKDF2 |
| CSfC (defence in depth) | two independent KEMs | two independent signers | two AEAD layers | SHA-384 / SHA-512 | per-layer HKDF |
languages · wire codec
The Imu wire record (u32 id, f64[3] accel, f32 temp, 32 B) parsed at native maximum in each language robobus code-generates for, measured on this host (Darwin · arm64), decode in a tight loop with a field checksum (no dead-code elision). Log scale; the span is ~1,700×.
Fastest: mojo 1.6G · python-cython 1.6G · crystal 1.5G · julia 1.5G · cpp 1.5G · zig 1.4G … median 358M dec/s, slowest cobol 916k. Expand for the full ranked bars.
transports · throughput
Sustained one-way throughput of the 75-byte AES-256-GCM sealed robobus frame over each transport, loopback on one host, the transport's software ceiling. All 15 transports measured, grouped by kind; every row carries the exact backend, QoS, and delivery count it was measured with. (Throughput is jittery on a shared laptop; each figure is a real single run, methodology in its note.)
The OS's own loopback ceiling, no broker, no discovery. This is the floor every higher-level transport builds on.
| Transport | Backend | frames/s | MB/s | lat p50 |
|---|---|---|---|---|
| Shared-memory bus | robobus (native) | 435006 | 32.6 | , |
| seqlock ring, put+get on 150,000 frames | ||||
| TCP | socket (stdlib) | 156782 | 11.8 | 16.1 µs |
| loopback, length-prefixed, TCP_NODELAY; 150,000 frames | ||||
| UDP | socket (stdlib) | 66855 | 5.0 | 20.0 µs |
| loopback; 150,000/150,000 rx (loss 0.00%) | ||||
| CAN | python-can | 17739 | 1.3 | , |
| virtual bus; 177,390 CAN frames/s ÷ 10 frags/robobus-frame | ||||
| Serial | pyserial (loop://) | 7801 | 0.6 | , |
| in-memory loopback, framed; 150,000 frames | ||||
A real broker/router relays each frame. Numbers include the broker round-trip on the same host; each row's note gives the broker, QoS, and delivery count.
| Transport | Backend | frames/s | MB/s | lat p50 |
|---|---|---|---|---|
| Zenoh | zenoh | 412577 | 30.9 | , |
| peer-to-peer, 100,000/100,000 delivered | ||||
| ZeroCM | zerocm | 167096 | 12.5 | , |
| block-inproc lock-free deque, raw channel; 150,000/150,000 delivered (inproc:// is ZeroMQ PUB/SUB and silently drops under flood) | ||||
| Kafka | confluent-kafka + Apache Kafka (KRaft, :9092) | 64110 | 4.8 | , |
| acks=1, local broker; 100,000/100,000 delivered | ||||
| MQTT | paho-mqtt + mosquitto | 18910 | 1.4 | , |
| QoS 0, local broker; 100,000/100,000 delivered | ||||
| LSL | pylsl + liblsl | 10864 | 0.8 | , |
| outlet→inlet, string channel; 42,653/60,000 delivered | ||||
| AMQP | pika + RabbitMQ | 7620 | 0.6 | , |
| transient delivery, local broker; 100,000/100,000 delivered | ||||
The DDS data bus and the ROS graphs on top of it. DDS throughput is the stock data plane; robobus's PQC-DDS patches secure the handshake (measured separately). ROS 2 shows both the flexible Python path and its true C++ ceiling.
| Transport | Backend | frames/s | MB/s | lat p50 |
|---|---|---|---|---|
| ROS 2 | rclpy take-loop (rmw_cyclonedds_cpp) | 351205 | 26.3 | , |
| RoboStack ros2_kilted; loopback pub->sub, RELIABLE keep_all, rmw_cyclonedds_cpp; 50,000/50,000 delivered (lossless). Fastest lossless rclpy path: raw sub.handle.take_message() loop (executor bypass), median 202,350 fps. The classic executor-callback path caps at ~20k (raw=True callbacks only ~+5%), the cap is Python executor dispatch, not just rosidl. The rclcpp C++ node (see 'ROS 2 (C++)') reaches ~370k fps; a pybind11 C++ receiver handing Python batches also hits ~370k (Python still counts every frame), and talking Zenoh directly from Python reaches ~677k. | ||||
| ROS 2 (C++) | rclcpp | 268141 | 20.1 | , |
| RoboStack ros2_kilted; rclcpp loopback pub->sub, SingleThreadedExecutor, RELIABLE keep_all, rmw_cyclonedds_cpp; 50,000/50,000 delivered (lossless). ROS 2's true ceiling for the 75-byte frame, ~15-18x the rclpy executor-callback baseline, no Python in the receive path. | ||||
| DDS | cyclonedds (stock, throughput) | 183700 | 13.8 | , |
| stock CycloneDDS data-plane throughput; loopback, RELIABLE+KEEP_ALL; 100,000/100,000 delivered (measured under CPython 3.12, the cyclonedds pip binding doesn't import on 3.14). robobus’s PQC-DDS patches (CNSA-2.0 hybrid ECDH+ML-KEM) for BOTH Fast DDS and CycloneDDS secure the session handshake, measured separately, they don’t change this per-sample rate. | ||||
| ROS 1 | rospy (TCPROS) | 55813 | 4.2 | , |
| RoboStack ros1_noetic; private rosmaster, TCPROS pub->sub; 50,000/50,000 delivered | ||||
kafka · protocol vs library
The Transports table above measures robobus moving a frame through a real Kafka
broker (durable, acks=1, cross-broker replicated), the honest cost of Kafka's strongest guarantee.
But Kafka is a wire protocol, and robobus speaks it directly: it emits and parses the exact
Kafka RecordBatch v2 bytes a standard client reads (CRC and all), so it can interpret
the protocol itself, skip the JVM and the client, and provide the durable, replayable feature far
faster, with per-message post-quantum AES-256-GCM Kafka does not have. The Kafka-core encoder +
durable log is ported to four native languages, every port byte-for-byte identical to the
Python reference (checked against kafka-python). Measured on darwin arm64 by
demos/kafka-protocol.
Each language's real sealed RecordBatch/s producing over robobus's Kafka-protocol path (AES-256-GCM RBX1 seal + Kafka RecordBatch v2 encode via the librobobus/libkafcore C ABI), best of three passes. The x is versus the 64k confluent/librdkafka broker round-trip; every language clears it by 19x to 51x. Every language reaches the same audited C path through its own FFI , Panama FFM on the JVM (Java, Kotlin), a native N-API addon for Node, an in-extension loop for Octave, and cffi/ctypes/luajit-ffi/P-Invoke and friends elsewhere , so the top cluster converges near 3M/s. The slower tail (Python, R, OCaml) is the interpreter's per-call loop cost, not the crypto; their compiled or JIT variants (Cython, PyPy) sit back up in the top cluster.
| port | binary · CRC | encode msg/s | durable append | replay msg/s |
|---|---|---|---|---|
| C | 34 KB · hw-armv8-crc | 88.1M | 25.5M | 196.5M |
| Rust | 480 KB · hw-armv8-crc | 62.0M | 13.7M | 103.6M |
| Zig | 404 KB · hw-armv8-crc (shared C-ABI) | 68.3M | 24.9M | 209.9M |
| Codon idiomatic List[byte] | 50 KB · hw-armv8-crc (llvm intrinsic) | 3.2M | 4.8M | 123.9M |
| Codon-Ptr Ptr[byte] comparator | 50 KB · hw-armv8-crc (llvm intrinsic) | 56.4M | 21.6M | 77.2M |
| port | binary · CRC | encode msg/s | durable append | durable MB/s | replay msg/s |
|---|---|---|---|---|---|
| C | 34 KB · hw-armv8-crc | 10.9M | 2.5M | 2,690 | 6.2M |
| Rust | 480 KB · hw-armv8-crc | 8.4M | 2.2M | 2,278 | 3.0M |
| Zig | 404 KB · hw-armv8-crc (shared C-ABI) | 8.0M | 2.9M | 3,115 | 4.9M |
| Codon idiomatic List[byte] | 50 KB · hw-armv8-crc (llvm intrinsic) | 975k | 912k | 965 | 11.3M |
| Codon-Ptr Ptr[byte] comparator | 50 KB · hw-armv8-crc (llvm intrinsic) | 8.6M | 524k | 555 | 4.1M |
Per-record fsync is disk-bound; coalescing the write()+fsync over a group of records (what a broker does per produce request) is how you approach Kafka's throughput.
| fsync every | 1 | 8 | 64 | 512 | 4096 |
|---|---|---|---|---|---|
| msg/s | 31k | 218k | 1.7M | 11.9M | 25.5M |
| path | msg/s |
|---|---|
| plaintext encode | 88.1M |
| seal + encode, fresh random nonce | 2.0M |
| seal + encode, counter nonce (AES ceiling) | 3.0M |
Per-message AES-256-GCM RBX1 (the CNSA 2.0 symmetric leg). The one-time ML-KEM-1024 + ML-DSA-87 handshake is connection setup, not steady state.
For reference, a single modern machine tops
out around 1-2M msg/s / 500MB-1GB/s for Kafka in industry benchmarks, and it is network/disk/page-cache
bound, not CPU bound; robobus interpreting the Kafka protocol clears that on one thread, no JVM, with
per-message post-quantum AEAD Kafka does not provide. Every robobus number here is machine-generated
(machine-generated by demos/kafka-protocol/native/build_and_bench.py (best-of-3, byte-identity checked vs kafka-python); no hand-entered numbers.).
The same sealed RecordBatch is emitted byte-identical across 33
language ecosystems over the librobobus C ABI (demos/kafka-protocol/native/ffi), so any language can
join one post-quantum-sealed Kafka bus. encode is the pure CPU ceiling; durable append is
the real broker path (buffer 4096 records, one write()+fsync). Honest scope: the robobus durable log is
single-node local durability, not Kafka's cross-broker replication. Codon ships two modes (idiomatic
List[byte] vs a Ptr[byte] comparator) to show its range.
kafka · message-size sweep · CNSA 2.0 (highest security)
The size axis of the grid: each of 33 languages sealing a Kafka RecordBatch across 6 payload sizes (32 B to 64 KiB), 198 real cells. Every cell is a full AES-256-GCM seal (the CNSA 2.0 symmetric leg, the highest security setting) plus RecordBatch v2 encode over the librobobus/libkafcore C ABI, best of three passes; the only variable is the payload, so no caller changed and each cell is byte-identical across languages. Read down a column: sealed RecordBatches/s falls as the payload grows (more bytes to encrypt per message), but the delivered bandwidth rises, from a peak of 100 MB/s at 32 B to 4.3 GB/s at 64 KiB (the hardware AES-GCM ceiling, one core). Read across a row: languages converge because the seal runs in shared C; the small spread at tiny payloads is each runtime's per-call overhead, which vanishes once the payload dominates. Colour is log-scaled within each row. Machine-measured locally; no hand-entered numbers.
| payload | crystal | tcl | fortran | zig | rust | cython | cobol | julia | csharp | java | cpp | kotlin | c | haskell | pascal | lua | go | luajit | nim | node | nelua | octave | typescript | pypy | bun | swift | ruby | mojo | perl | php | ocaml | python | r |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 32 B peak 100 MB/s | 3.11M | 3.10M | 3.10M | 3.09M | 3.09M | 3.08M | 3.05M | 3.04M | 3.03M | 2.98M | 2.98M | 2.92M | 2.88M | 2.87M | 2.80M | 2.74M | 2.74M | 2.68M | 2.66M | 2.66M | 2.65M | 2.59M | 2.53M | 2.53M | 2.47M | 2.19M | 2.02M | 1.95M | 1.88M | 1.87M | 1.56M | 1.40M | 1.20M |
| 256 B peak 717 MB/s | 2.67M | 2.72M | 2.65M | 2.65M | 2.73M | 2.70M | 2.69M | 2.71M | 2.69M | 2.59M | 2.53M | 2.59M | 2.78M | 2.49M | 2.62M | 2.50M | 2.54M | 2.68M | 2.57M | 2.64M | 2.68M | 2.80M | 2.24M | 2.65M | 2.15M | 2.04M | 1.91M | 2.37M | 1.91M | 2.06M | 1.68M | 1.36M | 1.08M |
| 1 KiB peak 2.0 GB/s | 1.52M | 1.87M | 1.43M | 1.82M | 1.74M | 1.76M | 1.72M | 1.84M | 1.68M | 1.76M | 1.59M | 1.84M | 1.83M | 1.70M | 1.89M | 1.81M | 1.48M | 1.91M | 1.83M | 1.82M | 1.88M | 1.93M | 1.62M | 1.81M | 1.55M | 1.48M | 1.14M | 1.68M | 1.51M | 1.52M | 1.35M | 1.02M | 672k |
| 4 KiB peak 3.5 GB/s | 839k | 773k | 844k | 842k | 769k | 853k | 848k | 859k | 837k | 840k | 840k | 842k | 843k | 831k | 847k | 833k | 820k | 848k | 832k | 840k | 847k | 856k | 722k | 847k | 779k | 766k | 708k | 820k | 767k | 776k | 727k | 660k | 469k |
| 16 KiB peak 4.3 GB/s | 263k | 246k | 263k | 236k | 259k | 264k | 264k | 265k | 262k | 257k | 263k | 261k | 256k | 261k | 261k | 264k | 255k | 263k | 228k | 252k | 262k | 259k | 253k | 262k | 253k | 251k | 223k | 264k | 250k | 254k | 250k | 238k | 177k |
| 64 KiB peak 4.3 GB/s | 51k | 66k | 61k | 65k | 66k | 60k | 64k | 65k | 56k | 61k | 64k | 63k | 65k | 64k | 65k | 65k | 61k | 66k | 65k | 65k | 64k | 64k | 65k | 66k | 64k | 63k | 65k | 65k | 64k | 62k | 61k | 64k | 46k |
The security axis, measured in shared C so it is language-independent: plaintext Kafka RecordBatch encode (security none) versus the same encode with a per-message AES-256-GCM seal (CNSA 2.0). The seal costs about 32x at 32 B, where the crypto dominates a tiny record, but only 2.4x by 64 KiB, where both sides saturate memory bandwidth, so the highest-security setting is nearly free at realistic payload sizes.
| security / payload | 32 B | 256 B | 1 KiB | 4 KiB | 16 KiB | 64 KiB |
|---|---|---|---|---|---|---|
| none (plaintext) | 3.1 GB/s | 12.4 GB/s | 11.1 GB/s | 10.1 GB/s | 9.2 GB/s | 10.1 GB/s |
| CNSA 2.0 (AES-256-GCM) | 96 MB/s | 702 MB/s | 1.9 GB/s | 3.3 GB/s | 3.8 GB/s | 4.2 GB/s |
| seal overhead | 32.4x | 17.7x | 6.0x | 3.1x | 2.5x | 2.4x |
web · browser platform · WebCrypto + WASM · CNSA 2.0
The 34th ecosystem is the browser itself , and it is local-first: the case where
you cannot defer to a server's AES-NI, so maximum in-browser capability is the whole point. The exact
post-quantum-class sealed Kafka RecordBatch is produced in a real browser (headless-verified),
byte-identical to libkafcore. Two routes: WebCrypto AES-256-GCM (SubtleCrypto, real hardware AES-NI,
but async , one promise per call), and a WASM build carrying an audited software AES (AWS-LC
aes_nohw, unmodified, ISC / FIPS-lineage, constant-time bitsliced , the same audited-COTS rule
as the rest of the stack), synchronous with no async boundary. The key insight is two regimes: small
messages are a rate game, bulk is a bandwidth game, and each route wins one.
Small, high-rate messages , the WASM path wins. WebCrypto's async round-trip dominates a tiny record, so the synchronous audited software AES pulls ahead: ~1.2M seals/s at 32 B, single-thread (the two routes cross near 4 KB, where WebCrypto's hardware AES starts to matter more than its async cost). WebAssembly has no AES-NI, so this is software AES , excellent for message rate, but it caps ~113 MB/s of bandwidth. Best-of-3, machine-measured.
| payload | WebCrypto | WebCrypto pipelined | WASM sync |
|---|---|---|---|
| 32 B | 92k | 149k | 1.21M |
| 256 B | 84k | 136k | 341k |
| 1 KiB | 62k | 100k | 108k |
| 4 KiB | 30k | 37k | 29k |
| 16 KiB | 8k | 9k | 7k |
| 64 KiB | 2k | 3k | 2k |
Bulk is a bandwidth game, and it belongs to WebCrypto: its async per-call cost , fatal for tiny records , vanishes against a large buffer, exposing the browser's real hardware AES-NI. Measured in a real browser (AES-256-GCM, best-of-3): 3.77 GB/s at 256 KiB, about 94% of the 4 GB/s target , single-thread, local-only, no server. Software AES (the WASM path) caps ~113 MB/s here, so bulk is where you switch engines. Two regimes, two routes: WASM for small high-rate messages, WebCrypto for bulk bandwidth.
| payload | 4 KiB | 64 KiB | 256 KiB | 1024 KiB | 4096 KiB |
|---|---|---|---|---|---|
| WebCrypto AES-256-GCM | 1.49 GB/s | 3.21 GB/s | 3.77 GB/s | 2.28 GB/s | 2.50 GB/s |
Unlike the native-FFI languages, one browser thread cannot match ~3M/s , that gap is hardware, not the web (see the note below). The honest way the web reaches native aggregate throughput is horizontal: fan the seal across Web Workers (edge runtimes use isolates). The constant-time WASM seal is pure CPU and scales almost linearly, reaching 5.91M/s across all 10 cores of this host. This is a multi-core number, not a per-thread one , it is shown to size the real deployment, not to claim single-core parity.
| worker threads | 1 | 2 | 4 | 8 | 10 |
|---|---|---|---|---|---|
| aggregate seals/s (32 B) | 1.22M | 2.36M | 4.08M | 5.65M | 5.91M |
transport × language · the full product
The complete grid: each of 26 languages driving each of
12 transports with the real 75-byte sealed frame (frames/s, loopback). The three
socket transports (UDP/TCP/UDS) each language drives with its own native BSD sockets, or libc
sockets via C interop for Fortran/Nelua/Pascal/COBOL/Mojo. The broker & middleware rows
(SHM, Serial, CAN, MQTT, AMQP, DDS, ZeroCM, LSL, marked ·shim) have no native
per-language client, so every language reaches them the same way the crypto matrix reaches a missing
primitive: through one labeled C shim (librbxport) wrapping each transport's real C
library (libmosquitto, rabbitmq-c, CycloneDDS, libzcm, liblsl, plus an in-C virtual CAN
bus and POSIX shm/pty), called through the language's own FFI. Read those rows by row: the
transport work happens in shared C, so within a row languages converge (the FFI overhead is
nearly free) and the spread is run-to-run noise on a shared host, not language speed. The transport
sets the ceiling, not the caller. The one exception is Kafka (marked ·native):
robobus speaks the Kafka wire protocol itself (demos/kafka-protocol), so this row is the
native protocol produce path, AES-256-GCM seal + Kafka RecordBatch v2 encode per message in each
language's own loop over the C ABI, not an external-broker round-trip. That work is caller-bound, so the
Kafka row spreads by language like the codec table (3M peak) instead of converging, and it runs
on the order of 100x to 200x the old librdkafka broker round-trip (~15k) it replaces. Colour is
log-scaled; the grid runs from SHM (~74M f/s, an in-process ring) down
to LSL (~100k), about 4,851x top to bottom. Every cell is
filled, all 26 languages × 12 transports, zero blanks. Where a language ships no
native socket client (TCP/UDS in the JVM, Node, Lua, Mojo, Octave…) it reaches the socket through the
same shim's UDP/TCP/UDS path. Runtime/accelerator variants share their base language's row.
| transport | c | cpp | rust | go | java | csharp | typescript | python | ruby | julia | swift | kotlin | pascal | fortran | nelua | cobol | nim | zig | crystal | perl | haskell | ocaml | lua-luajit | mojo | lua | octave |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| UDP | 169k | 165k | 164k | 199k | 110k | 121k | 77k | 130k | 85k | 144k | 188k | 120k | 164k | 159k | 246k | 278k | 302k | 296k | 377k | 261k | 212k | 117k | 205k | 230k | 200k | 228k |
| TCP | 324k | 352k | 300k | 375k | 335k | 338k | 334k | 322k | 336k | 342k | 343k | 331k | 453k | 313k | 409k | 381k | 463k | 458k | 477k | 399k | 501k | 497k | 333k | 320k | 308k | 323k |
| UDS | 435k | 504k | 503k | 1.1M | 331k | 408k | 1.2M | 335k | 156k | 485k | 472k | 975k | 468k | 502k | 497k | 602k | 480k | 502k | 487k | 531k | 417k | 380k | 1.1M | 956k | 1.1M | 1.1M |
| SHM ·shim | 67.2M | 56.7M | 63.1M | 68.1M | 51.9M | 5.4M | 44.4M | 52.7M | 67.4M | 35.2M | 65.4M | 53.1M | 9.9M | 26.2M | 54.5M | 62.5M | 57.7M | 64.5M | 74.2M | 57.8M | 58.1M | 19.0M | 59.2M | 50.7M | 41.2M | 63.3M |
| SERIAL ·shim | 161k | 171k | 176k | 173k | 73k | 62k | 120k | 156k | 150k | 153k | 170k | 71k | 121k | 65k | 110k | 99k | 172k | 170k | 152k | 161k | 163k | 56k | 154k | 158k | 155k | 91k |
| CAN ·shim | 2.9M | 3.3M | 2.6M | 3.5M | 1.5M | 1.0M | 3.4M | 3.6M | 3.3M | 3.1M | 2.8M | 2.4M | 2.0M | 2.6M | 1.2M | 2.5M | 3.2M | 2.7M | 612k | 1.6M | 2.8M | 3.2M | 2.7M | 3.3M | 1.9M | 1.1M |
| MQTT ·shim | 496k | 599k | 531k | 462k | 291k | 342k | 365k | 450k | 522k | 462k | 570k | 234k | 196k | 406k | 235k | 186k | 506k | 489k | 562k | 433k | 469k | 295k | 557k | 494k | 500k | 346k |
| AMQP ·shim | 262k | 249k | 267k | 270k | 67k | 62k | 192k | 265k | 258k | 249k | 247k | 49k | 64k | 69k | 82k | 63k | 249k | 241k | 251k | 262k | 238k | 78k | 242k | 214k | 176k | 56k |
| KAFKA ·native | 3.1M | 3.0M | 3.1M | 3.0M | 3.1M | 3.2M | 2.5M | 1.5M | 2.1M | 3.2M | 2.2M | 3.0M | 3.1M | 3.2M | 3.2M | 3.2M | 3.1M | 3.2M | 3.2M | 2.2M | 3.0M | 1.9M | 3.1M | 3.1M | 3.2M | 3.2M |
| DDS ·shim | 4.8M | 6.1M | 5.0M | 4.6M | 2.4M | 3.6M | 5.4M | 6.2M | 6.0M | 5.8M | 6.0M | 3.0M | 1.6M | 2.5M | 2.7M | 2.8M | 6.2M | 5.9M | 5.9M | 6.1M | 6.1M | 4.3M | 5.5M | 5.3M | 2.9M | 2.8M |
| ZEROCM ·shim | 1.6M | 1.3M | 1.8M | 1.7M | 1.6M | 1.7M | 1.8M | 1.9M | 1.8M | 1.7M | 1.7M | 1.3M | 465k | 695k | 1.2M | 1.3M | 1.8M | 1.7M | 1.7M | 1.9M | 1.1M | 1.7M | 1.8M | 1.6M | 1.2M | 1.3M |
| LSL ·shim | 80k | 87k | 100k | 94k | 24k | 29k | 70k | 87k | 92k | 96k | 93k | 21k | 15k | 30k | 32k | 35k | 100k | 92k | 88k | 86k | 86k | 57k | 80k | 76k | 26k | 36k |
crypto · every primitive · every language · grouped by technique
robobus carries a whole crypto suite, not one cipher, so this is the complete grid: every one of the 26 primitives it uses (AEAD ciphers, SHA-2/SHA-3/BLAKE3 hashes, Argon2id/scrypt/PBKDF2/HKDF/KMAC KDFs, the ML-KEM and X25519 KEMs, and the ML-DSA/SLH-DSA/Falcon and Ed25519 signatures) timed in every one of the 33 language configs, grouped per technique so each bar chart is a coherent apples-to-apples comparison (identical workload, ranked fastest first). Pick whichever primitives your requirements call for; the configurator at the top of the page reports which compliance regime (FIPS, CNSA 2.0, CSfC, NIST level) any given selection satisfies. Each language uses its native-maximum stack where it has one (stdlib, CryptoKit/JCE, RustCrypto, OpenSSL via its own FFI); where a language has no native implementation it reaches the primitive through one labeled C shim over OpenSSL 3.6.3 + liboqs + libblake3, so no cell is empty. The KEM and signature groups also carry the distinct backends (OpenSSL EVP, liboqs, Go's native crypto/mlkem) for an implementation-quality comparison. Argon2id is known-answer-verified in every language.
Overview: each strip is one primitive's language spread, slowest → fastest on a per-group log scale, the tick is the median, the label is the fastest language. Expand any group for the full ranked bars.
Grouped per technique so each comparison is coherent (identical workload, languages ranked). AEAD/hash are each language's native-maximum stack. PQC has ~no native per-language implementations, so it is measured on the real distinct backends (OpenSSL 3.6.3 EVP, liboqs, Go native crypto/mlkem); any language reaches the OpenSSL/liboqs numbers via FFI at ~the same cost.
portability · every CPU architecture · local QEMU, no CI runner
Speed is one axis; running correctly everywhere is the other. This grid is
produced by a local harness (bench/portability_harness.sh) that builds and runs the whole
stack inside a container for each ISA using Docker + QEMU on one workstation, so it
reproduces anywhere without a paid CI runner. On each architecture, including big-endian s390x, the crypto suite verifies and
the wire codec, schema codegen, the language bindings, and the transport bridges conform (each
seals frames the Python reference opens and vice-versa). Where a toolchain itself cannot run under
x86-on-arm64 emulation (a 32-bit-x86 JVM, which aborts under both qemu modes), that cell is marked
env and explained below, not scored as a pass or a failure. The wire is
little-endian-canonical, so a frame sealed on any of these opens on any other. Timing under emulation
is not cycle-accurate and is deliberately not shown here; this axis proves correctness across
endianness, word size and alignment.
| Architecture | Crypto | Wire | Codec | Codegen | Rust | Node | Java | Transports | Transports+ |
|---|---|---|---|---|---|---|---|---|---|
| ARM64 | ok | 3 | 7 | 18 | 3 | 3 | 3 | 4 | 10 |
| ARMv7 (32-bit) | ok | 3 | 7 | 18 | 3 | 3 | 3 | 4 | 10 |
| x86 (32-bit) | ok | 3 | 7 | 17 | 3 | 3 | env | 4 | 10 |
| ppc64le | ok | 3 | 7 | 18 | 3 | 3 | 3 | 4 | 10 |
| RISC-V 64 | ok | 3 | 7 | 18 | 3 | 3 | 3 | 4 | 10 |
| s390xbig-endian | ok | 3 | 7 | 18 | 3 | 3 | 3 | 4 | 10 |
env on x86 (32-bit): the 32-bit-x86 OpenJDK aborts at JVM init when x86 is emulated on this arm64 host, under both qemu-user (JceSecurity: Can not initialize cryptographic mechanism) and full-system qemu-system-x86_64 (SIGABRT in the 32-bit JVM). It needs real 32-bit-capable x86 hardware, so it is a JVM/emulation limitation, not a robobus defect: the Java binding conforms on 32-bit ARM, every other ISA here, and real x86 CI. Marked env, not counted as a failure.
Correctness across CPU architectures via local Docker+QEMU (no CI runner). Timing under emulation is not cycle-accurate and is not recorded; this proves the wire, crypto, language bindings and transports COMPUTE correctly on each ISA (endianness, word size).
Reproduce: bench/portability_harness.sh (needs Docker with QEMU binfmt registered).
python runtimes · CPython · Cython · PyPy · GraalPy · Nuitka · Codon · Mojo
robobus's Python surface runs on whatever runtime fits, and each has a native
acceleration path. Cython stacks with CPython (seal/open compiled to C in-process);
PyPy does not stack with Cython (its cpyext C-API layer is slow) but stacks with native
code via cffi, the JIT optimizing straight through the FFI into librobobus. The AOT
routes (Nuitka, Codon, Mojo) and the Truffle JIT (GraalPy) reach the same
native core through their own C interop. Same RBX1 seal+open workload, timed on each:
| Deliberate non-config | why it is not its own row |
|---|---|
| PyPy + Cython | intentional non-config: a CPython C-API extension loads on PyPy only through the slow cpyext emulation layer, so it is never the right PyPy stack. Use cffi (the row above) instead, which PyPy's JIT optimizes through |
Cython stacks with CPython (compiled hot path); PyPy does not stack with Cython (cpyext) but stacks with native code via cffi (JIT optimizes through the FFI).
ruby runtimes · the ruby family
The same story holds beyond Python, a three-rung runtime ladder on one CPU
kernel. The MRI interpreter is the baseline; YJIT, Ruby's in-box JIT (just
--yjit, zero dependencies, the Ruby analog of PyPy), compiles the hot method for a
few-fold lift once it's warmed past the call threshold; and crystalruby compiles Crystal hot
paths and calls them from MRI via FFI (the Ruby analog of CPython+Cython) for a ~50× jump. Crystal
standalone (Ruby-like syntax, LLVM-compiled) sits in the codec matrix above at C-class 0.79 ns/op:
Same CPU kernel across the Ruby runtime ladder: the MRI interpreter, MRI + the in-box YJIT JIT (--yjit, zero deps, the Ruby analog of PyPy), and crystalruby (inline-compiled Crystal hot paths called from MRI via FFI, the Ruby analog of CPython+Cython). Crystal standalone (Ruby-syntax, LLVM-native) is in the codec matrix.
one C-ABI · every language's FFI
You don't need a native robobus port to get the real thing. librobobus
is one C-ABI shared library, and every language reaches its complete seal/open surface
through its own foreign-function interface, LuaJIT's native FFI, Perl's FFI::Platypus
(libffi), Octave's compiled .oct C-linkage (it has no raw loadlibrary),
and CPython's cffi. The same RBX1 seal(41 B)→open round trip
(AES-256-GCM), each verified to round-trip before timing. Because the work happens in the shared C,
every binding lands near the C ceiling, the FFI overhead is nearly free:
One C-ABI shared library (librobobus) exposes robobus's full seal/open surface to any language through its own FFI. The round-trip is dominated by AES-256-GCM in the shared C, so every binding lands near the C ceiling, the FFI overhead is nearly free. Each binding is verified to round-trip (open(seal(pt))==pt) before timing.
requirements · speed under each profile
Security is a spectrum you choose per link, not a mandate, from classical (backwards-compatible with non-PQ peers) through hybrid transition profiles to CNSA 2.0 for National Security Systems. Each profile splits into two cost centres: session setup (the ML-KEM / ML-DSA handshake, once per peer, amortized) and the per-message hot path (AES-256-GCM, every frame). Session cost swings ~130× with assurance; per-message stays flat at line rate, so higher security buys handshake latency, not throughput.
| Profile | Level | Session setup | Per-message | msg/s | Standards |
|---|---|---|---|---|---|
| classical x25519 · ed25519 | classical | 0.78 ms KEM 0.49 · sign 0.14 · verify 0.15 ms | 3.12 µs | 320373 | RFC 7748 (X25519)RFC 8032 (Ed25519)NIST SP 800-38D (AES-GCM) |
| nist1 ml-kem-512 · ml-dsa-44 | NIST 1 | 0.23 ms KEM 0.04 · sign 0.15 · verify 0.04 ms | 2.98 µs | 335721 | FIPS 203 (ML-KEM-512)FIPS 204 (ML-DSA-44)FIPS 202 (SHA3-256)NIST SP 800-38D |
| nist3 ml-kem-768 · ml-dsa-65 | NIST 3 | 0.35 ms KEM 0.05 · sign 0.23 · verify 0.07 ms | 2.92 µs | 342284 | FIPS 203 (ML-KEM-768)FIPS 204 (ML-DSA-65)FIPS 202 (SHA3-384) |
| hybrid3 x25519+ml-kem-768 · ml-dsa-65 | NIST 3 | 0.85 ms KEM 0.56 · sign 0.24 · verify 0.06 ms | 3.06 µs | 326890 | FIPS 203FIPS 204RFC 7748NIST SP 800-56C (hybrid KDF) |
| nist5 ml-kem-1024 · ml-dsa-87 | NIST 5 | 0.45 ms KEM 0.07 · sign 0.28 · verify 0.10 ms | 3.05 µs | 327923 | FIPS 203 (ML-KEM-1024)FIPS 204 (ML-DSA-87)FIPS 202 (SHA3-512) |
| hybrid5 x448+ml-kem-1024 · ml-dsa-87 | NIST 5 | 6.22 ms KEM 5.85 · sign 0.27 · verify 0.10 ms | 2.92 µs | 342029 | FIPS 203FIPS 204RFC 7748 (X448)NIST SP 800-56C |
| cnsa20 ml-kem-1024 · ml-dsa-87 | NIST 5 | 0.43 ms KEM 0.06 · sign 0.27 · verify 0.09 ms | 3.05 µs | 327947 | CNSA 2.0FIPS 203 (ML-KEM-1024)FIPS 204 (ML-DSA-87)FIPS 180-4 (SHA-384) |
| nist5-kmac ml-kem-1024 · ml-dsa-87 | NIST 5 | 0.47 ms KEM 0.07 · sign 0.30 · verify 0.10 ms | 3.09 µs | 323561 | FIPS 203 (ML-KEM-1024)FIPS 204 (ML-DSA-87)FIPS 202 (SHA3-512)NIST SP 800-185 (KMAC256) |
| falcon5 ml-kem-1024 · falcon-1024 | NIST 5 | 0.30 ms KEM 0.07 · sign 0.20 · verify 0.04 ms | 3.04 µs | 329335 | FN-DSA/Falcon (NIST round 3 sig)FIPS 203FIPS 202 |
| sphincs5 ml-kem-1024 · sphincs-sha2-256f | NIST 5 | 30.68 ms KEM 0.07 · sign 29.87 · verify 0.74 ms | 2.93 µs | 340754 | FIPS 205 (SLH-DSA / SPHINCS+)FIPS 203FIPS 202 |
| csfc x448+ml-kem-1024 · ml-dsa-87 | NIST 5 | 6.70 ms KEM 6.34 · sign 0.25 · verify 0.10 ms | 3.77 µs | 265195 | NSA CSfC (two-layer)FIPS 203/204/202CNSA 2.0 inner |
Session setup is one-time per peer (amortized to ~0 over a session); the per-message hot path is ~constant across profiles (AES-256-GCM at line rate). Higher NIST level buys assurance at handshake latency, not stream throughput.