The gRPC Proxy saw the largest throughput gain. Synchronous sends and LitePull reads also favored Rust. Java led in three high-concurrency Broker workloads.
23 / 26
workloads where Rust matched or exceeded Java throughput in the final retest.
Throughput and latency
With 32 gRPC connections and four requests in flight per connection, the Rust Proxy delivered 2.20× the throughput of the Java Proxy and used 62% less Proxy CPU time per message. Both Proxies sent to the same Rust Broker.
Final-round throughput and CPU cost by workload
Workload
Rust / Java throughput
Rust CPU time per message
gRPC Proxy, synchronous / 1 × 256
1.27× / 1.05×
79% / 34% lower
gRPC Proxy, 4 × 64 / 32 × 4
1.46× / 2.20×
39% / 62% lower
Single Broker, synchronous sends
1.46–1.72×
70–88% lower across 128 B to 64 KiB
Single Broker, LitePull consumption
1.34–1.43×
41–51% lower
Single Broker, multi-connection async sends (128 B to 4 KiB)
1.14–1.23×
Similar in most cases, up to 10% lower
SYNC_FLUSH, synchronous / async 4 × 64
1.32× / 1.22×
43% / 16% lower
Three replicas, synchronous sends
1.31×
32% lower across all three Brokers combined
The Rust Proxy recorded lower p50, p99 and p99.9 latency in every tested configuration. With one connection and 256 requests in flight, p99 was 6.47 ms for Rust and 8.21 ms for Java. At p99.9 the gap widened to 7.71 ms versus 27.2 ms. Synchronous sends and LitePull reads also had lower p99 latency on the single Rust Broker.
gRPC Proxy tail latency 99th and 99.9th percentile send latencies in milliseconds. Both Proxies used the same Rust Broker.
Compare throughput for all 26 workloadsThroughput across all 26 workloads Percentage difference from Java in the final round. The vertical line at zero marks equal throughput.
Compare throughput gains and CPU savingsThroughput and CPU time per message Selected workloads where Rust delivered higher throughput. Both series use Java as the baseline. The replicated synchronous result combines CPU time on all three Brokers.
Compare single-Broker p99 latencySingle-replica Broker p99 latency 99th percentile latency in milliseconds for synchronous sends and LitePull consumption.
Where Java led
Rust delivered 6–8% less throughput in three workloads. Each used more Broker CPU time per message. The Java producer used one connection with 256 synchronous sender threads. The replicated workloads used asynchronous requests.
All three workloads below Java throughput
Workload
Rust / Java throughput
CPU per message Rust / Java
Single Broker, Java producer, 256 threads
0.92×
66 / 49 µs
Three replicas, async 1 × 256
0.93×
101 / 86 µs on leader
Three replicas, async 4 × 64
0.94×
101 / 91 µs on leader
In both replicated async workloads, the Rust leader executed about 25% fewer user-mode instructions per message but spent roughly twice as many cycles. Cross-core handoffs, wakeups and shared counters are candidates for investigation. Some multi-connection Broker sends also had p99 latencies about 1–2 ms higher on Rust.
Inspect the three-replica leader’s CPU countersCPU counters on the three-replica leader Thousands of user-mode cycles and instructions per message during asynchronous sends.
Test machines and conditions
All hosts ran Ubuntu 24.04 (Linux 6.8) on Intel Xeon 6982P-C processors in the same Alibaba Cloud VPC in Beijing.
Alibaba Cloud ECS machines (resources per host)
Host
ECS instance type
vCPUs
Reported RAM
Role
L
ecs.hfc9i.4xlarge
16
30 GiB
Load generator and NameServer. Also ran all three Controller processes in the replication tests.
B, B2, B3
ecs.i5.2xlarge
8
61 GiB
One Broker per host, with the message store on local NVMe. The single-Broker test recorded a 1,788 GiB ext4 volume mounted at /data.
P
ecs.hfc9i.2xlarge
8
14 GiB
Dedicated gRPC Proxy host for the Rust and Java Proxy runs.
The single-Broker tests used two machines (L and B). Proxy tests used three (L, P and B). Three-replica tests used four (L, B, B2 and B3).
Three rounds ran on Alibaba Cloud ECS from November 26 to 28, 2026. The final round compared a release-image build of RocketMQ Rust from main with Apache RocketMQ 5.5.0 (Java). Rust and Java alternated on the same instances within each round. Reported values are means of two to four measurements per scenario. Each round used fresh instances. Tested commit 8bed52240
In the final round P ran in another availability zone. The round-trip time from L to P was about 0.41 ms, compared with 0.13 ms within one zone. The 64 KiB asynchronous workload reached the network bandwidth limit.
All 26 normal workloads recorded zero failures in the final retest. In a separate quorum-loss check, both implementations rejected writes after both followers stopped.
How to read the workloads
Connections × requests in flight
4 × 64 means four connections with up to 64 outstanding requests each. A synchronous sender waits for one response before sending the next message. The Java-producer tests specify threads per connection separately.
Payload and storage
The default payload is 1 KiB. LitePull measures consumption of previously stored messages. The default ASYNC_FLUSH allows an acknowledgment after the write reaches the page cache. SYNC_FLUSH waits for the disk flush.
Broker topology
The single-replica configuration uses one Broker. In Controller mode, the three-replica group requires the leader and at least one follower to acknowledge each write. Both gRPC Proxies forward to the same Rust Broker over Remoting.
Deployment implications
The measured gains were largest for deployments dominated by Proxy traffic, synchronous sends or LitePull consumption. For high-concurrency asynchronous Broker traffic, size the CPU budget using the client and replication pattern you actually run. The three slower cases used roughly 10–35% more Broker CPU time per message on these instances.
The next performance target is to reduce per-request handoffs and shared atomic operations. Repeating the 256-thread Java-client workload on the same instances would help separate runtime variation from instance variation. Longer soak tests and failover tests would provide evidence beyond the short benchmark runs.