dotwire v0.4 benchmarks
dotwire is a self-hosted realtime chat backend: private rooms, history, typing indicators and presence, behind your own auth. Read about it in my earlier post.

The main test is a latency ladder: 100 rooms of 10 members each, with messages sent at a fixed rate that steps up from 100 to 10,000 msg/s. A step only counts as sustainable if the system keeps up and the p99 latency stays under target.
dotwire 0.4.1 held 5,000 msg/s with a p99 of 22.5–26.9 ms and zero lost messages in all three repetitions. Tinode held 100 msg/s comfortably (p99 ~30 ms), wobbled at 500 msg/s (p99 around 163 to 763 ms), and from 1,000 msg/s upward every send timed out, with a steady ~400–450 msg/s getting through.
When I pushed dotwire past its limit to 10,000 msg/s, it accepted about 7,300–7,700 msg/s with p99 at 1.5–3.6 seconds. It was slow, but it still delivered 100% of what it accepted.
- dotwire is CPU-bound. Host CPU climbs with load to ~75–80% at 5,000 msg/s, with no iowait.
- Tinode is disk-flush-bound. CPU sits around 25% while the data disk does ~560–890 writes per second at every step. It's waiting on the disk, not the processor.
.png)
At 100 msg/s, dotwire's p99 is ~6 ms against Tinode's ~30 ms. From there dotwire's curve stays almost flat: ~9 ms at 500, ~10 ms at 1,000, ~16 ms at 2,000 and 27 ms at 5,000 msg/s. Tinode's p99 crosses a second at 500 msg/s and hits the 10-second send timeout from 1,000 onward.
The campaign started on dotwire 0.4.0, and the first runs showed a p99 of 101–120 ms at 5,000 msg/s. After a fix, 0.4.1 reran everything on the same boxes. The fix was an inefficient auth query, plus raising Kestrel's listen backlog to 65,535. The results from 0.4.0 to 0.4.1:
- p99 at 5,000 msg/s: ~110 ms to ~25 ms, about 4× lower
- saturated throughput: +35% (5,375–5,713 to 7,284–7,710 msg/s accepted)
- history reads at 2,000 reads/s: p99 −45%
- 50,000-connection p99: −30%
.png)
Connections. Users connected at 500 per second up to 10k, 25k and 50k concurrent. dotwire completed all 50,000 connections with zero failures, with a median connect time of ~10 ms that stayed flat from 10k to 50k. Tinode lost about 2% of its joins at 50k to 503 locked responses (3,375 in total across the campaign), which my harness didn't retry. But Tinode connects faster: its p99 was 7–20 ms against dotwire's 82–284 ms, and dotwire's connect p99 also varied a lot between reps.
Fan-out. One sender, rooms growing from 10 to 5,000 members, measuring p99 per delivery: In small rooms dotwire is ~3× faster, but almost all of that gap is Tinode's ~25 ms acknowledgement (the same durability difference as in section 1). At 5,000 members it's a tie: the time until the last member gets a message overlaps (601–786 ms vs 703–794 ms).
History reads. Tinode wins here as well: its p99 is ~20–30% lower at 100, 500 and 2,000 reads/s, with a tie at 1,000. Neither system returned an error or a short page.
Reconnect storms. With 10,000 subscribed users and the server container restarted, dotwire delivered its first message after 2.7 s and had 99% of clients back within 14.8 s, with every client recovered. Tinode took ~12 s to first delivery, and 1.9–2.9% of clients never got back in. A harness bug killed some of the repeat reps, so I only claim the direction of this result.
.png)
Setup. 2x Hetzner CCX33 servers (8 dedicated AMD EPYC vCPUs, 32 GB RAM each). One runs the system under test, the other runs dwbench, my Rust load generator, over a private network. Both systems use the same Postgres image and config with synchronous_commit=on. Both are encrypted at rest the way they'd realistically be deployed: dotwire on plain ext4 with its own AES-GCM payload encryption (which can't be turned off), Tinode on LUKS2 + ext4.
Load model. Open loop, 256-byte payloads, 30 s warmup, 120 s measured, 10 s drain per step, with a 10 s send timeout. A step is thrown out if the load generator itself goes above 70% CPU or its scheduling lag p99 above 5 ms, so the client can't become the bottleneck without anyone noticing. Every scenario ran 3 times from the same data snapshot, and the charts show the worst rep.
Receipts. The whole campaign is archived: 389 result files, each one SHA-256 fingerprinted. The case study notebook decodes every raw latency histogram and recomputes the percentiles. All 187 step histograms reproduce the summary numbers exactly.
The harness, the raw results and the full case study are public at github.com/pasztor-mark/dw-benchmarks. More about dotwire at dotwire.pasztormark.dev.