Performance targets
The efficiency targets OrbitMQ is designed to meet, and how they will be measured.
Targets, not results
Every number in the targets table is a design target. No benchmark results have been published yet. Benchmarks are pending and will be published with full methodology, hardware details and reproducible scripts.
Targets
| Metric | Target |
|---|---|
| Idle connections per node | ≥ 10 million |
| Userspace memory per idle connection | ≤ 2 KB |
| Publish latency (p99) at 50% load | < 2 ms |
| Cross-core locks on the publish path | None |
| Throughput scaling | Near-linear with cores |
| Idle single-node footprint (edge) | < 15 MB RSS on 1 vCPU ARM64 |
Definitions
- Idle connection: an authenticated MQTT connection with one subscription that sends only keep-alive
PINGREQpackets. - Userspace memory per idle connection: broker resident memory divided by connection count at steady state, excluding kernel socket buffers (which are tuned separately by the operating system).
- 50% load: half of the maximum sustainable publish rate measured on the same hardware.
- p99 latency: time from the last byte of a
PUBLISHarriving at the broker to the last byte written to the subscriber's socket, measured at the 99th percentile.
Development measurements
Indicative only
These figures come from development hardware (a laptop running Linux in a virtual machine) and track progress towards the targets. They are not published benchmark results: those will come from the planned methodology below.
| Metric | Measured during development |
|---|---|
| Broker memory (RSS) per idle connection | About 1.9 to 2.0 KB without subscriptions on one core (previously about 3 KB, and about 10 KB before that) |
| Kernel memory per idle TCP connection | About 4.2 KB per TCP socket, separate from the broker's own memory |
| Idle single-node footprint, 1 core | About 12 MB RSS |
The broker figure grows with the number of cores and subscriptions per connection: an MQTT 3.1.1 connection without subscriptions on one core needs about 1.9 to 2.0 KB, and a persistent MQTT 5.0 session with three subscriptions on eight cores about 3.8 KB. Idle connections hold no read or write buffers, and keep-alive deadlines share one timer wheel per core instead of a timer per connection. The kernel figure is the socket's own slab memory, which the operating system accounts outside the broker process. The userspace target of 2 KB per idle connection, which is defined with one subscription, is not met yet.
Methodology (planned)
- Benchmarks run on documented, publicly available cloud instance types.
- Load generators run on separate machines from the broker.
- Results include the full configuration, commit hash and raw data, and comparisons with other brokers use each broker's recommended production settings.