1.1 How fast can messages be submitted?
To pursue extreme performance, TwoBufQueue provides a single-block WriteSession for fast consecutive writes into the current block.
The four charts show producer submission throughput from the Session comparison, in million messages/s; higher is better. TwoBufQueue uses one common configuration across all four message sizes. Native queues use their measured configurations with upstream code unchanged.
8 B
16 B
32 B
64 B
Only producer sending is timed, including block acquisition, switching and waits during sending. Round draining is outside timing. Consumers run concurrently, including layer-2 copying. Callback loop count is 0; native slot storage and TwoBufQueue output storage are 256 MiB. This Session configuration also uses 256 MiB of producer storage, a separate experiment from the 16 KiB business-impact case below.
| Submission pattern | Full results |
|---|---|
| Write many messages within one block | WriteSession |
| Ordinary write with publication at block handoff | Batch publication |
| Ordinary write with per-record progress publication | Publish every record |
Reports include p50, p99, p999 and backpressure. Write-cost quantiles use 1,000-write group averages, not individual-call or end-to-end latency. Submission modes are tuned separately. Benchmark methodology includes workloads, parameters, three-run data and reproduction commands.