N.01 / MEASUREMENT

Before 17.3 Gbps: get the fixture and the scope right

Real numbers from four-way throughput, UDP and a public-node round—and how a fixture bug cut one proxy from 45.7 to 30.3 Gbps while making the old implementation 13 Gbps faster for free.

Scope: two local rounds on 2026-10-16/17 and a public-node round on 2026-10-17; host kernel 6.18, lab offload enabled by default, throughput as the median of five rounds. Raw TSVs and reports live in the public repository at docs/benchmark-report-v4.html, docs/reviews/2026-10-16-local-full-bench/ and docs/reviews/2026-10-17-real-node-cf-edge/.

Write the scope before the ranking

A performance number is easily read as a leaderboard. Change the host, kernel, topology, round count, offload state or fixtureA fixture here is the netns client/server pair under lab/perf; its checksum runs on the client thread, so the fixture has to be verified before it can judge anyone., and the order can change. The local round is a netnsnetns is a Linux network namespace: client and server each run in their own, so traffic never crosses the host network stack. comparison: 384 MB duplex, 48 MB × 4 streams; direct is bounded by a fixture ceiling near 24.5 Gbps; ss uses ssserver (Rust) upstream; VLESS and ss use the post-fix scope from 2026-10-16/17, and TLS reuses the same round. The public round is different: a client reaches proof.ovh.net through a real subscription node whose egress is about 19 Mbps, so all three implementations hit the same ceiling.

Local four-way: direct hits the fixture, VLESS shows userspace

Table 1 · Four paths × four implementations (Gbps, median of five rounds)
ImplementationdirectVLESS plainss (chacha20)VLESS+TLS
sodama25.517.39.2712.1
dae v2.1.125.013.09.3311.5
sing-box 1.14.222.616.110.312.2
v2ray 5.52.014.010.76.197.81

The direct column is close because packets take the in-kernel eBPF path and never enter userspace; the fixture ceiling near 24.5 Gbps is reached before the implementations separate, so 25.5 / 25.0 / 22.6 is noise, not a verdict. VLESS plain is where userspace copy cost shows: moving 384 MB duplex costs sodama 70 ms of process CPU, dae 400 ms, sing-box 80 ms and v2ray 730 ms. ss is held by single-core AEAD, with all four around 6–10 Gbps; VLESS+TLS uses AES-NI GCM and returns to about 12 Gbps.

Latency should be stated too: on VLESS p50, sodama is 44 µs, dae 42 µs, sing-box 41 µs and v2ray 52 µs. sodama is not the p50 winner; its advantage is throughput and CPU, not per-request latency.

UDP: 41 Mbps is a CPU budget, not bandwidth

40,000 packets of 256 B at 20,000 pps is only 41 Mbps line rate. The resolution here is CPU and loss, not bandwidth. sodama spends 1,020 ms of process CPU per 40,000 packets with zero loss; sing-box 1,610 ms, v2ray 1,820 ms, dae 2,170 ms and mihomo 2,460 ms. The implementation uses batched recvmmsg / sendmmsg, a 16-shard session table and UDP GSO aggregation; when the kernel returns EMGSIZE / EINVAL / EOPNOTSUPP, it falls back per packet without retry or loss. GSO send, datagram and unsupported counters are exported, so “we use GSO” is not an unverifiable claim.

Public round: 19.3 Mbps is the shared ceiling

Table 2 · Real-node round (17 rounds × 4, target proof.ovh.net)
ImplementationThroughput MbpsProcess CPU ms/GBKernel side ms/GBTotal ms/GB
sodama19.32,9529,69012,642
dae v2.1.118.64,26620,16524,431
sing-box 1.14.219.34,11124,65928,770

Node egress is about 19 Mbps, so throughput is capped for all three and the difference moves to CPU per GB. sodama’s process cost is 31% below dae and 28% below sing-box; including the kernel side widens the gap to −48% / −56%, but that side includes host noise and is only an upper-bound estimate. The round also produced a capability comparison: the node accepts domain targets only, so all three must sniff and dial by domain; sing-box 1.14 removed sniff-based target override and has to use route action / FakeIP, while sodama and dae keep the native path. When throughput is tied, the capability boundary carries more information than a decimal.

The fixture bug: 45.7 → 30.3

The first echo check used iter().any(|b| *b != 0x5a). That short-circuiting iterator was not vectorized and consumed the client reader threads’ CPU: the same proxy ran at 45.7 Gbps unchecked and 30.3 Gbps with the scan. Worse, it made the old implementation look faster (15.1 → 28.0 Gbps) because changing client timing changed thread placement. Every five-way and A/B number from that fixture was retired.

The fix uses slice equality against a static 64 KiB pattern, which compiles to memcmp / SIMD. It costs about 6% versus an unchecked client (46.8 → 43.8 Gbps) and no longer re-rates implementations relative to each other. The lesson: the fixture is part of the measurement. Validate the validator first, and never compare numbers across fixture versions.

What these numbers do not say

  • direct is fixture-limited; the differences are noise, not a language or implementation ranking.
  • ss at 9–10 Gbps is a single-core AEAD limit, not a Rust-versus-Go conclusion.
  • The public round measures client efficiency; node egress is the shared ceiling and does not equal production throughput.
  • A five-round median is not a release budget; a 60-minute soak is not 72 hours, and 72 hours is not forever.

So this article does not crown a winner. It gives a set of recomputable numbers and the boundary attached to each. Knowing when not to conclude is more useful than winning one more 0.9 Gbps.

Reproduce: build with cargo build --release, then ROUNDS=5 PROXY_PROTO=vless lab/perf/run.sh all; the public round uses lab/perf/real.sh. Full method in docs/methodology.md and Atlas §4–§5.