Skip to content
github-actions[bot] edited this page Aug 29, 2026 · 210 revisions

Performance

Titanium targets low-overhead MITM proxying: connection pooling, HTTP/2 multiplexing, and buffer reuse. Numbers below are Release measurements with RpsLoadProbe (and BenchmarkDotNet / Basic example where noted). Publishable tables cite GitHub Actions medians on matched 4 vCPU / 16 GiB runners. Absolute RPS still varies by OS kernel, TLS, and MsQuic packaging — compare within a table, not across Windows vs Linux.

Control arms: nginx (native C reverse-proxy ceiling; Linux is authoritative) and YARP (Yarp.ReverseProxy, managed .NET reverse proxy). Neither can MITM (no CONNECT / forged certs). FiddlerCore is not compared (commercial debugger license; not a throughput peer).

For pooling knobs and certificate first-visit tuning, see Performance and pooling. For the local cool A/B lab, laptop tables, and profiling notes, see Performance Profiling.

Contents

Measurement environment

Both OS use the standard public-repo GitHub-hosted runner class (4 vCPU / 16 GiB / 14 GB SSD). Same harness knobs (workflow_dispatch RPS saturation: warmup 2s / measure 8s; concurrency 8, 16, 32, 64; median of 3 repeats; --stop-on-slo-fail default on). Every --ramp arm is three OS processes (parent load generator + origin child + proxy child), except origin-direct arms (load gen + origin only). Prefer TWP÷YARP / TWP÷nginx ratios over absolute RPS.

Laptop High-perf / cool-paired Windows numbers live on Performance Local Lab. Do not mix those absolutes into the tables below.

Tiered cadence

Tier Mode When
Daily / per-PR compare-spot minutes
Milestone compare-terminate / compare-matrix ~1–2h
Editions compare-editions ~60 min (CLI / Plus / Intercept stress arms)
Cross-version (Gate 2) compare-cross-version ~1–2h vs committed 6.0 baselines
Release / wiki compare-product ~3–4h
Heavier tables compare-bodies / post / lossy / arch / bridges / tls-cost dispatch independently

See PERF-GATES.md.

Windows (GitHub-hosted windows-latest)

OS Windows Server (GitHub-hosted windows-latest)
CPU 4 logical processors
RAM 16 GiB
Runtime .NET 10.0.x
nginx nginx/Windows 1.31.3 (same-OS only; no QUIC)
YARP Yarp.ReverseProxy 2.3.0
Harness RpsLoadProbe Release; median of 3 repeats

Linux (GitHub-hosted ubuntu-latest)

OS Ubuntu 24.04.x LTS
CPU 4 logical processors (AMD EPYC; runners this pass were 7763 / 9V74)
RAM 16 GiB
Runtime .NET 10.0.11
nginx nginx/1.31.4 (nginx.org mainline, --with-http_v3_module)
YARP Yarp.ReverseProxy 2.3.0
Harness RpsLoadProbe Release; median of 3 repeats where noted

Saturation control

Calibration for the shared 4 vCPU loopback shape: how close client + origin are to saturated before ranking reverse peers. Tiny keep-alive GET. Median of 3 repeats @ 9d7c2966 — 32866709227. Warmup 2s / measure 8s; concurrency 8, 16, 32, 64. Block A % of origin-HttpClient uses median peak RPS. Blocks B/C use peer÷YARP / ÷nginx on median peak (not % of H1 origin). RPS cells embed median RSS / CPU for the proxy child plus its full descendant tree (serve-proxy → nginx master → workers); origin-direct samples the origin child. Product matrices below use matched dotnet-httpclient only (not bombardier). H3→H1 (saturation Block C): Win TWP RSS 103 MiB vs YARP 119 (0.87×); Linux 142 vs 181 (0.78×). RPS vs YARP (0.99× / 1.1×).

pwsh tools/RpsLoadProbe/run-rps.ps1 -Mode compare-saturation

Block A — H1 plain

Arm Generator Notes
origin-direct dotnet-httpclient No proxy — origin ceiling under the same client used for publishable ratios
origin-direct-bombardier bombardier External client check (CI installs bombardier)
bare-reverse-http1 dotnet-httpclient Thin C# H1 reverse (BareHttp1ReverseProxy) — .NET runtime / loopback ceiling for a three-process reverse hop; not a product peer
nginx-reverse-http1 / yarp-reverse-http1 / twp-reverse-http1 dotnet-httpclient Product peers (medals among these three only)

Windows (windows-latest)

Arm Generator Sustain Peak % of origin-HttpClient
origin-direct dotnet-httpclient 50,717
(53 MiB / 41.6% CPU)
50,717
(53 MiB / 41.6% CPU)
100.0%
origin-direct-bombardier bombardier 38,335
(55 MiB / 22.7% CPU)
38,335
(55 MiB / 22.7% CPU)
75.6%
bare-reverse-http1 dotnet-httpclient 25,467
(55 MiB / 46.5% CPU)
25,467
(55 MiB / 46.5% CPU)
50.2%
nginx-reverse-http1 dotnet-httpclient 13,259
(121 MiB / 25.0% CPU)
13,422
(121 MiB / 25.0% CPU)
26.5%
yarp-reverse-http1 dotnet-httpclient 21,331
(89 MiB / 49.9% CPU)
21,331
(89 MiB / 49.9% CPU)
42.1%
twp-reverse-http1 dotnet-httpclient 🥇 25,358
(75 MiB / 49.2% CPU)
25,358
(75 MiB / 49.2% CPU)
50.0%

Linux (ubuntu-latest)

Arm Generator Sustain Peak % of origin-HttpClient
origin-direct dotnet-httpclient 68,992
(78 MiB / 41.8% CPU)
68,992
(78 MiB / 41.8% CPU)
100.0%
origin-direct-bombardier bombardier 41,996
(78 MiB / 34.4% CPU)
41,996
(78 MiB / 34.4% CPU)
60.9%
bare-reverse-http1 dotnet-httpclient 32,077
(60 MiB / 45.0% CPU)
32,077
(60 MiB / 45.0% CPU)
46.5%
nginx-reverse-http1 dotnet-httpclient 🥇 38,039
(72 MiB / 40.9% CPU)
38,039
(72 MiB / 40.9% CPU)
55.1%
yarp-reverse-http1 dotnet-httpclient 26,736
(113 MiB / 49.2% CPU)
26,736
(113 MiB / 49.2% CPU)
38.8%
twp-reverse-http1 dotnet-httpclient 31,431
(84 MiB / 50.0% CPU)
31,431
(84 MiB / 50.0% CPU)
45.6%

Reverse peers are about 50–46% of the origin-direct HttpClient peak on this runner class (Win TWP 50.0%, Lin TWP 45.6%). Prefer the % column over absolute RPS across runs. Bare and origin-direct are controls (not medal peers).

Block B — H2 TLS→H1

Peer ratios (÷YARP / ÷nginx) on median peak; RPS cells embed (MiB / CPU%).

Windows (windows-latest)

Arm Generator Sustain Peak ÷YARP ÷nginx
nginx-reverse-http2 dotnet-httpclient 8,264
(248 MiB / 24.8% CPU)
8,411
(248 MiB / 24.8% CPU)
0.29× 1×
yarp-reverse-http2 dotnet-httpclient 29,096
(95 MiB / 53.0% CPU)
29,096
(95 MiB / 53.0% CPU)
1× 3.46×
twp-reverse-http2-cleartext dotnet-httpclient 🥇 35,180
(96 MiB / 52.0% CPU)
35,180
(96 MiB / 52.0% CPU)
1.21× 4.18×

Linux (ubuntu-latest)

Arm Generator Sustain Peak ÷YARP ÷nginx
nginx-reverse-http2 dotnet-httpclient 14,490
(97 MiB / 19.4% CPU)
14,490
(97 MiB / 19.4% CPU)
0.51× 1×
yarp-reverse-http2 dotnet-httpclient 28,448
(120 MiB / 49.0% CPU)
28,448
(120 MiB / 49.0% CPU)
1× 1.96×
twp-reverse-http2-cleartext dotnet-httpclient 🥇 33,751
(120 MiB / 51.7% CPU)
33,751
(120 MiB / 51.7% CPU)
1.19× 2.33×

Block C — H3→H1

Same layout as Block B. Requires QuicListener; nginx only with http_v3_module (Windows nginx has no QUIC).

Windows (windows-latest)

Arm Generator Sustain Peak ÷YARP ÷nginx
nginx-reverse-http3-cleartext dotnet-httpclient Not possible (no QUIC) Not possible — —
yarp-reverse-http3-cleartext dotnet-httpclient 14,549
(119 MiB / 50.8% CPU)
15,166
(119 MiB / 50.8% CPU)
1× —
twp-reverse-http3-cleartext dotnet-httpclient 🥇 15,028
(103 MiB / 46.5% CPU)
15,028
(103 MiB / 46.5% CPU)
0.99× —

Linux (ubuntu-latest)

Arm Generator Sustain Peak ÷YARP ÷nginx
nginx-reverse-http3-cleartext dotnet-httpclient 0
(103 MiB / 22.4% CPU)
15,186
(103 MiB / 22.4% CPU)
0.85× 1×
yarp-reverse-http3-cleartext dotnet-httpclient 17,856
(181 MiB / 49.5% CPU)
17,856
(181 MiB / 49.5% CPU)
1× 1.18×
twp-reverse-http3-cleartext dotnet-httpclient 🥇 20,378
(142 MiB / 50.4% CPU)
20,378
(142 MiB / 50.4% CPU)
1.14× 1.34×

How to read the tables

  • Reverse = bare transparent fixed-forward (no TWP plugins / interception). nginx knobs match TWP/YARP streaming (keepalive 256, proxy_buffering off). MITM = TWP-only table on the same Client×Origin wires: Lite = no-op handlers (unchanged-lite finish reuses reverse compressed relay); Full = mutating handlers that append up to four unique headers per direction (RPS harness adds one; product uses MitmCompressedRelayHelper — no probe name in library code). Remove/replace/non-unique header growth and body mutation still force full decode/re-encode. nginx/YARP cannot MITM. HTTP/3 has no cleartext client (QUIC always encrypted).
  • Sustainable = last concurrency that still met error/latency SLOs. Peak = highest RPS in that ramp.
  • 🥇 = best among TWP / nginx / YARP on Reverse rows (or saturation blocks): highest RPS; on an RPS tie, lower Memory (RSS) then lower CPU%. MITM is TWP-only. Lite÷Reverse / Full÷Reverse = TWP MITM lite or full sustain ÷ TWP Reverse sustain on the same Client×Origin from the same compare-product job.
  • Not possible = product cannot do that path. Not measured = path exists but no published number yet for that OS.
  • Product refresh: compare-product @ 3d9aba23 — 33263425394. Heavier/saturation/tls:
pwsh tools/RpsLoadProbe/run-rps.ps1 -Mode compare-product
pwsh tools/RpsLoadProbe/run-rps.ps1 -Mode compare-bodies
pwsh tools/RpsLoadProbe/run-rps.ps1 -Mode compare-post
pwsh tools/RpsLoadProbe/run-rps.ps1 -Mode compare-lossy
pwsh tools/RpsLoadProbe/run-rps.ps1 -Mode compare-tls-cost
pwsh tools/RpsLoadProbe/run-rps.ps1 -Mode compare-arch
pwsh tools/RpsLoadProbe/run-rps.ps1 -Mode compare-saturation

Windows — Titanium vs nginx vs YARP

Client / origin: HTTP version and whether TLS is used (plain = cleartext, TLS = encrypted, QUIC = HTTP/3).

Reverse

Median of 3 repeats on windows-latest (4 vCPU / 16 GiB). Bare reverse 5×5 @ 3d9aba23 — compare-product 33263425394. Warmup 2s / measure 8s; concurrency 8, 16, 32, 64. Prefer TWP÷peer ratios over absolute RPS. RPS cells include median RSS / CPU at the peak-RPS step as <br><sub>(MiB / CPU%)</sub>. nginx terminate peers use keepalive 256 + streaming buffers. Laptop High-perf / cool-paired numbers stay on the local lab.

Load generators: Reverse inbound H3 arms use dotnet-httpclient (http_version=3.0, RequestVersionExact). nginx/Windows is same-OS only (no QUIC).

Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
HTTP/1 · plain HTTP/1 · plain 🥇 38369
(71 MiB / 47.8% CPU)
🥇 38369
(71 MiB / 47.8% CPU)
28737
(121 MiB / 24.7% CPU)
28737
(121 MiB / 24.7% CPU)
34764
(89 MiB / 47.6% CPU)
34764
(89 MiB / 47.6% CPU)
HTTP/1 · plain HTTP/1 · TLS 🥇 33996
(84 MiB / 47.5% CPU)
🥇 33996
(84 MiB / 47.5% CPU)
Not possible Not possible 31505
(99 MiB / 49.5% CPU)
31505
(99 MiB / 49.5% CPU)
HTTP/1 · plain HTTP/2 · plain 🥇 50155
(101 MiB / 47.1% CPU)
🥇 50155
(101 MiB / 47.1% CPU)
Not possible Not possible 50080
(91 MiB / 50% CPU)
50080
(91 MiB / 50% CPU)
HTTP/1 · plain HTTP/2 · TLS 🥇 46645
(107 MiB / 49% CPU)
🥇 46645
(107 MiB / 49% CPU)
Not possible Not possible 45968
(96 MiB / 49.4% CPU)
45968
(96 MiB / 49.4% CPU)
HTTP/1 · plain HTTP/3 · QUIC 25037
(110 MiB / 48.6% CPU)
25037
(110 MiB / 48.6% CPU)
Not possible (no QUIC) Not possible (no QUIC) 🥇 25380
(123 MiB / 50.4% CPU)
🥇 25380
(123 MiB / 50.4% CPU)
HTTP/1 · TLS HTTP/1 · plain 🥇 34306
(85 MiB / 48% CPU)
🥇 34306
(85 MiB / 48% CPU)
19339
(138 MiB / 24.9% CPU)
19339
(138 MiB / 24.9% CPU)
30763
(104 MiB / 48% CPU)
30763
(104 MiB / 48% CPU)
HTTP/1 · TLS HTTP/1 · TLS 🥇 31764
(83 MiB / 48.4% CPU)
🥇 31764
(83 MiB / 48.4% CPU)
Not possible Not possible 28259
(106 MiB / 49.6% CPU)
28259
(106 MiB / 49.6% CPU)
HTTP/1 · TLS HTTP/2 · plain 🥇 43598
(120 MiB / 47% CPU)
🥇 43598
(120 MiB / 47% CPU)
Not possible Not possible 42567
(107 MiB / 49% CPU)
42567
(107 MiB / 49% CPU)
HTTP/1 · TLS HTTP/2 · TLS 🥇 41037
(111 MiB / 47.1% CPU)
🥇 41037
(111 MiB / 47.1% CPU)
Not possible Not possible 39725
(108 MiB / 51.2% CPU)
39725
(108 MiB / 51.2% CPU)
HTTP/1 · TLS HTTP/3 · QUIC 22617
(113 MiB / 49.6% CPU)
22617
(113 MiB / 49.6% CPU)
Not possible (no QUIC) Not possible (no QUIC) 🥇 22619
(125 MiB / 50% CPU)
🥇 22619
(125 MiB / 50% CPU)
HTTP/2 · plain HTTP/1 · plain 🥇 49880
(94 MiB / 49.8% CPU)
🥇 49880
(94 MiB / 49.8% CPU)
Not possible Not possible 48266
(86 MiB / 49% CPU)
48266
(86 MiB / 49% CPU)
HTTP/2 · plain HTTP/1 · TLS 🥇 44970
(102 MiB / 54.2% CPU)
🥇 44970
(102 MiB / 54.2% CPU)
Not possible Not possible 42446
(96 MiB / 49.1% CPU)
42446
(96 MiB / 49.1% CPU)
HTTP/2 · plain HTTP/2 · plain 🥇 102064
(72 MiB / 36.9% CPU)
🥇 102064
(72 MiB / 36.9% CPU)
Not possible Not possible 76831
(91 MiB / 50% CPU)
76831
(91 MiB / 50% CPU)
HTTP/2 · plain HTTP/2 · TLS 🥇 91934
(85 MiB / 37.8% CPU)
🥇 91934
(85 MiB / 37.8% CPU)
Not possible Not possible 69679
(112 MiB / 49.4% CPU)
69679
(112 MiB / 49.4% CPU)
HTTP/2 · plain HTTP/3 · QUIC 🥇 37581
(129 MiB / 53.1% CPU)
🥇 37581
(129 MiB / 53.1% CPU)
Not possible (no QUIC) Not possible (no QUIC) 35546
(131 MiB / 51.4% CPU)
35546
(131 MiB / 51.4% CPU)
HTTP/2 · TLS HTTP/1 · plain 🥇 48388
(100 MiB / 48.6% CPU)
🥇 48388
(100 MiB / 48.6% CPU)
18397
(137 MiB / 24.1% CPU)
18397
(137 MiB / 24.1% CPU)
44861
(91 MiB / 49.2% CPU)
44861
(91 MiB / 49.2% CPU)
HTTP/2 · TLS HTTP/1 · TLS 🥇 43683
(101 MiB / 48.5% CPU)
🥇 43683
(101 MiB / 48.5% CPU)
Not possible Not possible 40221
(93 MiB / 49.3% CPU)
40221
(93 MiB / 49.3% CPU)
HTTP/2 · TLS HTTP/2 · plain 🥇 94862
(94 MiB / 37.6% CPU)
🥇 94862
(94 MiB / 37.6% CPU)
Not possible Not possible 69474
(100 MiB / 51.8% CPU)
69474
(100 MiB / 51.8% CPU)
HTTP/2 · TLS HTTP/2 · TLS 🥇 87778
(88 MiB / 38.2% CPU)
🥇 87778
(88 MiB / 38.2% CPU)
Not possible Not possible 64069
(101 MiB / 50% CPU)
64069
(101 MiB / 50% CPU)
HTTP/2 · TLS HTTP/3 · QUIC 🥇 35989
(139 MiB / 53.6% CPU)
🥇 35989
(139 MiB / 53.6% CPU)
Not possible (no QUIC) Not possible (no QUIC) 33002
(129 MiB / 54.1% CPU)
33002
(129 MiB / 54.1% CPU)
HTTP/3 · QUIC HTTP/1 · plain 🥇 24524
(116 MiB / 42.1% CPU)
🥇 24524
(116 MiB / 42.1% CPU)
Not possible (no QUIC) Not possible (no QUIC) 19742
(163 MiB / 46.2% CPU)
19742
(163 MiB / 46.2% CPU)
HTTP/3 · QUIC HTTP/1 · TLS 🥇 21952
(124 MiB / 40.6% CPU)
🥇 21952
(124 MiB / 40.6% CPU)
Not possible Not possible 18960
(169 MiB / 48.6% CPU)
18960
(169 MiB / 48.6% CPU)
HTTP/3 · QUIC HTTP/2 · plain 🥇 33480
(125 MiB / 46.4% CPU)
🥇 33480
(125 MiB / 46.4% CPU)
Not possible (no H3 to H2) Not possible (no H3 to H2) 33337
(162 MiB / 48.5% CPU)
33337
(162 MiB / 48.5% CPU)
HTTP/3 · QUIC HTTP/2 · TLS 🥇 31236
(128 MiB / 45.2% CPU)
🥇 31236
(128 MiB / 45.2% CPU)
Not possible (no H3 to H2) Not possible (no H3 to H2) 28583
(178 MiB / 47.2% CPU)
28583
(178 MiB / 47.2% CPU)
HTTP/3 · QUIC HTTP/3 · QUIC 🥇 19326
(127 MiB / 45.1% CPU)
🥇 19326
(127 MiB / 45.1% CPU)
Not possible (no QUIC) Not possible (no QUIC) 15788
(171 MiB / 51.4% CPU)
15788
(171 MiB / 51.4% CPU)

MITM (TWP only)

Same Client×Origin wires with interception on (compare-product 33263425394). Lite = no-op handlers (unchanged-lite finish). Full = append-only header mutation (harness: one probe header each way; product: generic append-only relay via MitmCompressedRelayHelper). nginx/YARP cannot MITM. Lite÷Reverse / Full÷Reverse vs bare reverse (same job). Completion gate: Lite and Full ≥ 0.70× reverse sustain @ c=64 (median of 3 GHA runs).

v1 append-only relay (2026-08-27): Pre-fix H2→H2 Full÷Reverse was 0.13–0.16× (32960766249). Post-fix @ df172718: H2 plain→H2 plain Full 0.77–0.79×, H3→H1 Full 0.91–0.93×, all MITM arms ≥ 0.70× on median of 33041445371, 33055267086, 33055272140.

v2 drop-only + non-unique append (2026-08-27): MitmStaticRebuildHelper rebuilds static HPACK/QPACK after 1–4 unique header drops; trailing non-unique appends stay on compressed relay. @ 3d9aba23: all MITM arms ≥ 0.70× on GHA median (33087088466, 33087091622, 33105885748 Linux; 33087085235, 33087088466, 33087091622 Windows). H2 plain→H2 plain Full 0.77–0.79× (Win) / 0.78× (Lin).

Client Origin Lite sustain Full sustain Lite÷Reverse Full÷Reverse
HTTP/1 · plain HTTP/1 · plain 37499
(78 MiB / 47.1% CPU)
36692
(82 MiB / 48.4% CPU)
0.98× 0.96×
HTTP/1 · plain HTTP/1 · TLS 33670
(91 MiB / 50.3% CPU)
33329
(93 MiB / 48.8% CPU)
0.99× 0.98×
HTTP/1 · plain HTTP/2 · plain 47939
(118 MiB / 49.3% CPU)
47269
(121 MiB / 50.7% CPU)
0.96× 0.94×
HTTP/1 · plain HTTP/2 · TLS 44334
(116 MiB / 52.5% CPU)
43212
(115 MiB / 50.9% CPU)
0.95× 0.93×
HTTP/1 · plain HTTP/3 · QUIC 24364
(110 MiB / 51.8% CPU)
24395
(109 MiB / 52.1% CPU)
0.97× 0.97×
HTTP/1 · TLS HTTP/1 · plain 33664
(92 MiB / 49.6% CPU)
33317
(91 MiB / 48.7% CPU)
0.98× 0.97×
HTTP/1 · TLS HTTP/1 · TLS 31338
(91 MiB / 45.7% CPU)
31028
(90 MiB / 47.8% CPU)
0.99× 0.98×
HTTP/1 · TLS HTTP/2 · plain 41854
(128 MiB / 50.3% CPU)
41118
(131 MiB / 49.3% CPU)
0.96× 0.94×
HTTP/1 · TLS HTTP/2 · TLS 39260
(127 MiB / 48.2% CPU)
38884
(122 MiB / 46.9% CPU)
0.96× 0.95×
HTTP/1 · TLS HTTP/3 · QUIC 22418
(115 MiB / 50.1% CPU)
21967
(115 MiB / 48.5% CPU)
0.99× 0.97×
HTTP/2 · plain HTTP/1 · plain 47958
(94 MiB / 53.3% CPU)
46963
(100 MiB / 52.3% CPU)
0.96× 0.94×
HTTP/2 · plain HTTP/1 · TLS 42958
(107 MiB / 53.6% CPU)
41979
(113 MiB / 51.1% CPU)
0.96× 0.93×
HTTP/2 · plain HTTP/2 · plain 88260
(73 MiB / 50.1% CPU)
84660
(71 MiB / 52.4% CPU)
0.86× 0.83×
HTTP/2 · plain HTTP/2 · TLS 80614
(76 MiB / 48.9% CPU)
78342
(79 MiB / 47.2% CPU)
0.88× 0.85×
HTTP/2 · plain HTTP/3 · QUIC 36774
(129 MiB / 52.9% CPU)
36148
(129 MiB / 53.1% CPU)
0.98× 0.96×
HTTP/2 · TLS HTTP/1 · plain 46532
(108 MiB / 53.5% CPU)
45319
(103 MiB / 53.3% CPU)
0.96× 0.94×
HTTP/2 · TLS HTTP/1 · TLS 41659
(105 MiB / 52.1% CPU)
40776
(112 MiB / 51% CPU)
0.95× 0.93×
HTTP/2 · TLS HTTP/2 · plain 85390
(91 MiB / 49.1% CPU)
81678
(90 MiB / 48.1% CPU)
0.9× 0.86×
HTTP/2 · TLS HTTP/2 · TLS 78512
(105 MiB / 47.5% CPU)
75191
(88 MiB / 45.5% CPU)
0.89× 0.86×
HTTP/2 · TLS HTTP/3 · QUIC 36256
(144 MiB / 52.2% CPU)
34724
(141 MiB / 55.7% CPU)
1.01× 0.96×
HTTP/3 · QUIC HTTP/1 · plain 23122
(112 MiB / 43.3% CPU)
22673
(123 MiB / 42.8% CPU)
0.94× 0.92×
HTTP/3 · QUIC HTTP/1 · TLS 21075
(129 MiB / 44.9% CPU)
20816
(128 MiB / 44% CPU)
0.96× 0.95×
HTTP/3 · QUIC HTTP/2 · plain 30724
(138 MiB / 51.1% CPU)
29647
(136 MiB / 48.8% CPU)
0.92× 0.89×
HTTP/3 · QUIC HTTP/2 · TLS 29166
(142 MiB / 47.7% CPU)
28169
(141 MiB / 49.2% CPU)
0.93× 0.9×
HTTP/3 · QUIC HTTP/3 · QUIC 17580
(126 MiB / 46.5% CPU)
16935
(123 MiB / 50.1% CPU)
0.91× 0.88×

Linux — Titanium vs nginx vs YARP

Reverse

Median of 3 repeats on ubuntu-latest (4 vCPU / 16 GiB). Bare reverse 5×5 @ 3d9aba23 — compare-product 33263425394. Warmup 2s / measure 8s; concurrency 8, 16, 32, 64. Linux nginx is the authoritative nginx baseline. nginx terminate peers use keepalive 256 + streaming buffers. The RPS workflow installs nginx.org mainline (http_v3_module) and libmsquic. Prefer ratios over absolute RPS.

Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
HTTP/1 · plain HTTP/1 · plain 58570
(88 MiB / 48.5% CPU)
58570
(88 MiB / 48.5% CPU)
🥇 77944
(72 MiB / 38.3% CPU)
🥇 77944
(72 MiB / 38.3% CPU)
51144
(113 MiB / 48.6% CPU)
51144
(113 MiB / 48.6% CPU)
HTTP/1 · plain HTTP/1 · TLS 🥇 46428
(106 MiB / 46.6% CPU)
🥇 46428
(106 MiB / 46.6% CPU)
Not possible Not possible 41919
(126 MiB / 48.3% CPU)
41919
(126 MiB / 48.3% CPU)
HTTP/1 · plain HTTP/2 · plain 🥇 64246
(131 MiB / 50.7% CPU)
🥇 64246
(131 MiB / 50.7% CPU)
Not possible Not possible 61996
(122 MiB / 49.1% CPU)
61996
(122 MiB / 49.1% CPU)
HTTP/1 · plain HTTP/2 · TLS 🥇 53581
(142 MiB / 49.5% CPU)
🥇 53581
(142 MiB / 49.5% CPU)
Not possible Not possible 52742
(131 MiB / 47.9% CPU)
52742
(131 MiB / 47.9% CPU)
HTTP/1 · plain HTTP/3 · QUIC 🥇 31964
(145 MiB / 51.4% CPU)
🥇 31964
(145 MiB / 51.4% CPU)
Not possible (no QUIC) Not possible (no QUIC) 0
(112 MiB / 63.1% CPU)
0
(112 MiB / 63.1% CPU)
HTTP/1 · TLS HTTP/1 · plain 46538
(111 MiB / 48.1% CPU)
46538
(111 MiB / 48.1% CPU)
🥇 58983
(99 MiB / 39% CPU)
🥇 58983
(99 MiB / 39% CPU)
40847
(134 MiB / 49.5% CPU)
40847
(134 MiB / 49.5% CPU)
HTTP/1 · TLS HTTP/1 · TLS 🥇 40208
(112 MiB / 46.6% CPU)
🥇 40208
(112 MiB / 46.6% CPU)
Not possible Not possible 34459
(134 MiB / 47.8% CPU)
34459
(134 MiB / 47.8% CPU)
HTTP/1 · TLS HTTP/2 · plain 🥇 48396
(156 MiB / 50.8% CPU)
🥇 48396
(156 MiB / 50.8% CPU)
Not possible Not possible 46263
(144 MiB / 49.7% CPU)
46263
(144 MiB / 49.7% CPU)
HTTP/1 · TLS HTTP/2 · TLS 🥇 42397
(148 MiB / 48.4% CPU)
🥇 42397
(148 MiB / 48.4% CPU)
Not possible Not possible 41887
(144 MiB / 48.3% CPU)
41887
(144 MiB / 48.3% CPU)
HTTP/1 · TLS HTTP/3 · QUIC 🥇 28718
(152 MiB / 52.2% CPU)
🥇 28718
(152 MiB / 52.2% CPU)
Not possible (no QUIC) Not possible (no QUIC) 0
(134 MiB / 60.1% CPU)
0
(134 MiB / 60.1% CPU)
HTTP/2 · plain HTTP/1 · plain 🥇 61317
(120 MiB / 50.6% CPU)
🥇 61317
(120 MiB / 50.6% CPU)
Not possible Not possible 59951
(112 MiB / 48.6% CPU)
59951
(112 MiB / 48.6% CPU)
HTTP/2 · plain HTTP/1 · TLS 🥇 46296
(123 MiB / 46.6% CPU)
🥇 46296
(123 MiB / 46.6% CPU)
Not possible Not possible 45801
(123 MiB / 46.6% CPU)
45801
(123 MiB / 46.6% CPU)
HTTP/2 · plain HTTP/2 · plain 🥇 101181
(98 MiB / 39.1% CPU)
🥇 101181
(98 MiB / 39.1% CPU)
Not possible Not possible 75735
(127 MiB / 47.1% CPU)
75735
(127 MiB / 47.1% CPU)
HTTP/2 · plain HTTP/2 · TLS 🥇 78229
(106 MiB / 37.2% CPU)
🥇 78229
(106 MiB / 37.2% CPU)
Not possible Not possible 61374
(129 MiB / 45.3% CPU)
61374
(129 MiB / 45.3% CPU)
HTTP/2 · plain HTTP/3 · QUIC 🥇 34078
(157 MiB / 49% CPU)
🥇 34078
(157 MiB / 49% CPU)
Not possible (no QUIC) Not possible (no QUIC) 0
(110 MiB / 62.8% CPU)
0
(110 MiB / 62.8% CPU)
HTTP/2 · TLS HTTP/1 · plain 🥇 56379
(127 MiB / 49.2% CPU)
🥇 56379
(127 MiB / 49.2% CPU)
35019
(99 MiB / 19.4% CPU)
35019
(99 MiB / 19.4% CPU)
50482
(121 MiB / 47.8% CPU)
50482
(121 MiB / 47.8% CPU)
HTTP/2 · TLS HTTP/1 · TLS 🥇 44129
(125 MiB / 45.8% CPU)
🥇 44129
(125 MiB / 45.8% CPU)
Not possible Not possible 41030
(125 MiB / 46% CPU)
41030
(125 MiB / 46% CPU)
HTTP/2 · TLS HTTP/2 · plain 🥇 93416
(110 MiB / 38.8% CPU)
🥇 93416
(110 MiB / 38.8% CPU)
Not possible Not possible 60472
(134 MiB / 46.4% CPU)
60472
(134 MiB / 46.4% CPU)
HTTP/2 · TLS HTTP/2 · TLS 🥇 74950
(116 MiB / 36.4% CPU)
🥇 74950
(116 MiB / 36.4% CPU)
Not possible Not possible 52430
(127 MiB / 44.1% CPU)
52430
(127 MiB / 44.1% CPU)
HTTP/2 · TLS HTTP/3 · QUIC 🥇 32686
(172 MiB / 48.7% CPU)
🥇 32686
(172 MiB / 48.7% CPU)
Not possible (no QUIC) Not possible (no QUIC) 0
(118 MiB / 59.1% CPU)
0
(118 MiB / 59.1% CPU)
HTTP/3 · QUIC HTTP/1 · plain 🥇 31693
(152 MiB / 46.5% CPU)
🥇 31693
(152 MiB / 46.5% CPU)
0
(110 MiB / 18.6% CPU)
38495
(110 MiB / 18.6% CPU)
28812
(197 MiB / 47.8% CPU)
28812
(197 MiB / 47.8% CPU)
HTTP/3 · QUIC HTTP/1 · TLS 🥇 26529
(171 MiB / 44.5% CPU)
🥇 26529
(171 MiB / 44.5% CPU)
Not possible Not possible 24575
(203 MiB / 47.4% CPU)
24575
(203 MiB / 47.4% CPU)
HTTP/3 · QUIC HTTP/2 · plain 🥇 33593
(154 MiB / 50.3% CPU)
🥇 33593
(154 MiB / 50.3% CPU)
Not possible (no H3 to H2) Not possible (no H3 to H2) 32256
(208 MiB / 47% CPU)
32256
(208 MiB / 47% CPU)
HTTP/3 · QUIC HTTP/2 · TLS 🥇 30530
(160 MiB / 48.3% CPU)
🥇 30530
(160 MiB / 48.3% CPU)
Not possible (no H3 to H2) Not possible (no H3 to H2) 29580
(204 MiB / 46.7% CPU)
29580
(204 MiB / 46.7% CPU)
HTTP/3 · QUIC HTTP/3 · QUIC 🥇 24263
(177 MiB / 45.5% CPU)
🥇 24263
(177 MiB / 45.5% CPU)
Not possible (no QUIC) Not possible (no QUIC) 0
(210 MiB / 56.5% CPU)
0
(210 MiB / 56.5% CPU)

MITM (TWP only)

Same Client×Origin wires with interception on (compare-product 33263425394). Lite = no-op handlers (unchanged-lite finish). Full = append-only header mutation (harness: one probe header each way; product: generic append-only relay via MitmCompressedRelayHelper). nginx/YARP cannot MITM. Lite÷Reverse / Full÷Reverse vs bare reverse (same job). Completion gate: Lite and Full ≥ 0.70× reverse sustain @ c=64 (median of 3 GHA runs).

v1 append-only relay (2026-08-27): Pre-fix H2→H2 Full÷Reverse was 0.13–0.16× (32960766249). Post-fix @ df172718: H2 plain→H2 plain Full 0.77–0.79×, H3→H1 Full 0.91–0.93×, all MITM arms ≥ 0.70× on median of 33041445371, 33055267086, 33055272140.

v2 drop-only + non-unique append (2026-08-27): MitmStaticRebuildHelper rebuilds static HPACK/QPACK after 1–4 unique header drops; trailing non-unique appends stay on compressed relay. @ 3d9aba23: all MITM arms ≥ 0.70× on GHA median (33087088466, 33087091622, 33105885748 Linux; 33087085235, 33087088466, 33087091622 Windows). H2 plain→H2 plain Full 0.77–0.79× (Win) / 0.78× (Lin).

Client Origin Lite sustain Full sustain Lite÷Reverse Full÷Reverse
HTTP/1 · plain HTTP/1 · plain 58204
(96 MiB / 49.6% CPU)
55916
(92 MiB / 48.6% CPU)
0.99× 0.95×
HTTP/1 · plain HTTP/1 · TLS 45835
(115 MiB / 47.8% CPU)
45455
(112 MiB / 47.5% CPU)
0.99× 0.98×
HTTP/1 · plain HTTP/2 · plain 63123
(146 MiB / 53.8% CPU)
61301
(139 MiB / 53.1% CPU)
0.98× 0.95×
HTTP/1 · plain HTTP/2 · TLS 51665
(147 MiB / 51% CPU)
51592
(151 MiB / 51.4% CPU)
0.96× 0.96×
HTTP/1 · plain HTTP/3 · QUIC 32202
(146 MiB / 51.7% CPU)
32740
(153 MiB / 52.8% CPU)
1.01× 1.02×
HTTP/1 · TLS HTTP/1 · plain 45435
(114 MiB / 49% CPU)
45401
(112 MiB / 48.2% CPU)
0.98× 0.98×
HTTP/1 · TLS HTTP/1 · TLS 38036
(113 MiB / 46.1% CPU)
37886
(116 MiB / 46.3% CPU)
0.95× 0.94×
HTTP/1 · TLS HTTP/2 · plain 47493
(155 MiB / 51.1% CPU)
46964
(162 MiB / 51.5% CPU)
0.98× 0.97×
HTTP/1 · TLS HTTP/2 · TLS 42147
(161 MiB / 49.6% CPU)
41072
(155 MiB / 49.9% CPU)
0.99× 0.97×
HTTP/1 · TLS HTTP/3 · QUIC 28170
(156 MiB / 51.4% CPU)
28153
(161 MiB / 51.9% CPU)
0.98× 0.98×
HTTP/2 · plain HTTP/1 · plain 60307
(119 MiB / 51.3% CPU)
57879
(125 MiB / 50.9% CPU)
0.98× 0.94×
HTTP/2 · plain HTTP/1 · TLS 46186
(138 MiB / 48.2% CPU)
44869
(131 MiB / 48% CPU)
1× 0.97×
HTTP/2 · plain HTTP/2 · plain 82272
(117 MiB / 48.5% CPU)
79110
(121 MiB / 47.9% CPU)
0.81× 0.78×
HTTP/2 · plain HTTP/2 · TLS 66817
(115 MiB / 45.1% CPU)
65276
(104 MiB / 44% CPU)
0.85× 0.83×
HTTP/2 · plain HTTP/3 · QUIC 33276
(163 MiB / 48.9% CPU)
32991
(157 MiB / 50.4% CPU)
0.98× 0.97×
HTTP/2 · TLS HTTP/1 · plain 54865
(123 MiB / 50.2% CPU)
53054
(122 MiB / 49.7% CPU)
0.97× 0.94×
HTTP/2 · TLS HTTP/1 · TLS 42153
(125 MiB / 46.7% CPU)
42364
(125 MiB / 47% CPU)
0.96× 0.96×
HTTP/2 · TLS HTTP/2 · plain 73526
(111 MiB / 45% CPU)
70024
(119 MiB / 44.4% CPU)
0.79× 0.75×
HTTP/2 · TLS HTTP/2 · TLS 61346
(119 MiB / 42.2% CPU)
60279
(119 MiB / 41.8% CPU)
0.82× 0.8×
HTTP/2 · TLS HTTP/3 · QUIC 32328
(170 MiB / 49.2% CPU)
32107
(164 MiB / 49.1% CPU)
0.99× 0.98×
HTTP/3 · QUIC HTTP/1 · plain 29776
(157 MiB / 47.3% CPU)
29351
(159 MiB / 47.4% CPU)
0.94× 0.93×
HTTP/3 · QUIC HTTP/1 · TLS 25111
(163 MiB / 45.8% CPU)
25068
(174 MiB / 48.4% CPU)
0.95× 0.94×
HTTP/3 · QUIC HTTP/2 · plain 32261
(168 MiB / 52% CPU)
31368
(166 MiB / 51.4% CPU)
0.96× 0.93×
HTTP/3 · QUIC HTTP/2 · TLS 28611
(167 MiB / 50.2% CPU)
28454
(169 MiB / 50.3% CPU)
0.94× 0.93×
HTTP/3 · QUIC HTTP/3 · QUIC 21349
(170 MiB / 48.2% CPU)
21559
(168 MiB / 48.3% CPU)
0.88× 0.89×

Heavier reverse workloads

Separate from the tiny-GET matrix. Same measurement environments. Modes: compare-bodies, compare-post, compare-lossy, compare-tls-cost, compare-arch in RpsLoadProbe. Dispatch each independently via workflow_dispatch (no need to re-run full compare-product). PUT with the same body is the same proxy work as POST; DELETE with no body matches GET — only POST is published. Bodies/POST/lossy stay half-duplex. compare-arch is the slow-consumer / early-response / duplex set. Laptop numbers are on Performance Local Lab; CI medians go in the tables below.

Lossy link = userspace shim (not kernel netem): TCP gets per-buffer delay + occasional whole-connection stalls (honest HOL for multiplexed H2); UDP gets per-datagram delay + drops (QUIC). compare-lossy publishes H1/H2/H3; H3 is where the protocol design is supposed to matter.

Windows — heavier reverse GET (64 KiB / 256 KiB)

Median of 3 repeats on windows-latest @ 9d7c2966. Source: Actions 32871900682 (compare-bodies). Warmup 2s / measure 8s. RPS cells include (MiB / CPU%) footprints.

Body Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
64 KiB HTTP/1 · TLS HTTP/1 · plain 🥇 10,297
(99 MiB / 45.5% CPU)
10,564
(99 MiB / 45.5% CPU)
717
(137 MiB / 24.6% CPU)
739
(137 MiB / 24.6% CPU)
9,283
(110 MiB / 44.7% CPU)
9,413
(110 MiB / 44.7% CPU)
64 KiB HTTP/2 · TLS HTTP/1 · plain 🥇 9,135
(168 MiB / 46.2% CPU)
9,135
(168 MiB / 46.2% CPU)
626
(137 MiB / 24.8% CPU)
637
(137 MiB / 24.8% CPU)
7,533
(108 MiB / 49.7% CPU)
7,745
(108 MiB / 49.7% CPU)
64 KiB HTTP/3 · QUIC HTTP/1 · plain 🥇 4,728
(108 MiB / 39.8% CPU)
4,900
(108 MiB / 39.8% CPU)
Not possible (no QUIC) Not possible (no QUIC) 3,995
(177 MiB / 49.0% CPU)
4,035
(177 MiB / 49.0% CPU)
256 KiB HTTP/1 · TLS HTTP/1 · plain 🥇 3,056
(88 MiB / 42.6% CPU)
3,271
(88 MiB / 42.6% CPU)
191
(136 MiB / 24.8% CPU)
194
(136 MiB / 24.8% CPU)
2,488
(115 MiB / 45.7% CPU)
2,839
(115 MiB / 45.7% CPU)
256 KiB HTTP/2 · TLS HTTP/1 · plain 🥇 2,568
(115 MiB / 38.9% CPU)
2,639
(115 MiB / 38.9% CPU)
163
(137 MiB / 24.9% CPU)
163
(137 MiB / 24.9% CPU)
2,003
(132 MiB / 41.6% CPU)
2,003
(132 MiB / 41.6% CPU)
256 KiB HTTP/3 · QUIC HTTP/1 · plain 🥇 1,210
(88 MiB / 39.3% CPU)
1,254
(88 MiB / 39.3% CPU)
Not possible (no QUIC) Not possible (no QUIC) 1,100
(125 MiB / 43.9% CPU)
1,136
(125 MiB / 43.9% CPU)

nginx/Windows collapses on large reverse bodies in this harness; treat as same-OS only. H1 TLS 64 KiB ≈ 1.11× YARP; 256 KiB ≈ 1.23×. H2→H1 64 KiB ≈ 1.21×; H3→H1 64 KiB ≈ 1.18×.

Linux — heavier reverse GET (64 KiB / 256 KiB)

Median of 3 repeats @ 9d7c2966. Source: Actions 32871900682 (compare-bodies). Warmup 2s / measure 8s.

Body Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
64 KiB HTTP/1 · TLS HTTP/1 · plain 🥇 7,902
(170 MiB / 44.4% CPU)
7,902
(170 MiB / 44.4% CPU)
5,518
(96 MiB / 52.5% CPU)
5,518
(96 MiB / 52.5% CPU)
6,420
(158 MiB / 48.8% CPU)
6,420
(158 MiB / 48.8% CPU)
64 KiB HTTP/2 · TLS HTTP/1 · plain 🥇 5,831
(218 MiB / 38.9% CPU)
5,831
(218 MiB / 38.9% CPU)
1,790
(95 MiB / 23.6% CPU)
1,925
(95 MiB / 23.6% CPU)
4,739
(161 MiB / 45.9% CPU)
4,739
(161 MiB / 45.9% CPU)
64 KiB HTTP/3 · QUIC HTTP/1 · plain 🥇 5,384
(177 MiB / 44.5% CPU)
5,384
(177 MiB / 44.5% CPU)
1,614
(113 MiB / 22.0% CPU)
1,718
(113 MiB / 22.0% CPU)
4,236
(219 MiB / 51.1% CPU)
4,236
(219 MiB / 51.1% CPU)
256 KiB HTTP/1 · TLS HTTP/1 · plain 🥇 2,742
(121 MiB / 37.2% CPU)
2,742
(121 MiB / 37.2% CPU)
1,732
(95 MiB / 53.3% CPU)
1,732
(95 MiB / 53.3% CPU)
2,142
(171 MiB / 45.9% CPU)
2,142
(171 MiB / 45.9% CPU)
256 KiB HTTP/2 · TLS HTTP/1 · plain 🥇 1,535
(206 MiB / 32.7% CPU)
1,535
(206 MiB / 32.7% CPU)
538
(96 MiB / 18.6% CPU)
538
(96 MiB / 18.6% CPU)
1,319
(164 MiB / 42.7% CPU)
1,330
(164 MiB / 42.7% CPU)
256 KiB HTTP/3 · QUIC HTTP/1 · plain 🥇 1,432
(148 MiB / 43.1% CPU)
1,432
(148 MiB / 43.1% CPU)
448
(107 MiB / 23.3% CPU)
448
(107 MiB / 23.3% CPU)
1,270
(218 MiB / 47.4% CPU)
1,270
(218 MiB / 47.4% CPU)

On this GHA pass TWP÷YARP H1 TLS ≈ 1.23× (64 KiB) / 1.28× (256 KiB); H2→H1 ≈ 1.23× / 1.16×; H3→H1 ≈ 1.27× / 1.13×. TWP÷nginx H1 TLS ≈ 1.43 / 1.58. Absolute RPS swings by VM; prefer ratios.

Windows — POST 64 KiB request + 64 KiB response

Median of 3 repeats on windows-latest @ 9d7c2966. Source: Actions 32866714851 (compare-post).

Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
HTTP/1 · TLS HTTP/1 · plain 🥇 8,612
(84 MiB / 42.0% CPU)
9,133
(84 MiB / 42.0% CPU)
497
(138 MiB / 24.8% CPU)
538
(138 MiB / 24.8% CPU)
5,837
(96 MiB / 56.0% CPU)
6,283
(96 MiB / 56.0% CPU)
HTTP/2 · TLS HTTP/1 · plain 🥇 6,241
(196 MiB / 49.7% CPU)
6,242
(196 MiB / 49.7% CPU)
486
(139 MiB / 24.9% CPU)
493
(139 MiB / 24.9% CPU)
5,106
(118 MiB / 50.9% CPU)
5,147
(118 MiB / 50.9% CPU)
HTTP/3 · QUIC HTTP/1 · plain 🥇 2,691
(118 MiB / 43.7% CPU)
2,937
(118 MiB / 43.7% CPU)
Not possible (no QUIC) Not possible (no QUIC) 2,549
(132 MiB / 49.5% CPU)
2,747
(132 MiB / 49.5% CPU)

TWP leads H1 POST (1.5× YARP), H2 POST (1.2× YARP), and H3 POST (~1.1× YARP).

Linux — POST 64 KiB request + 64 KiB response

Median of 3 repeats @ 9d7c2966. Source: Actions 32866714851 (compare-post).

Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
HTTP/1 · TLS HTTP/1 · plain 🥇 6,746
(127 MiB / 41.8% CPU)
6,746
(127 MiB / 41.8% CPU)
5,443
(98 MiB / 44.8% CPU)
5,443
(98 MiB / 44.8% CPU)
4,410
(176 MiB / 53.8% CPU)
4,410
(176 MiB / 53.8% CPU)
HTTP/2 · TLS HTTP/1 · plain 🥇 4,720
(220 MiB / 47.0% CPU)
4,720
(220 MiB / 47.0% CPU)
2,362
(106 MiB / 21.8% CPU)
2,475
(106 MiB / 21.8% CPU)
3,616
(144 MiB / 48.3% CPU)
3,626
(144 MiB / 48.3% CPU)
HTTP/3 · QUIC HTTP/1 · plain 🥇 3,306
(223 MiB / 43.7% CPU)
3,306
(223 MiB / 43.7% CPU)
835
(111 MiB / 24.6% CPU)
835
(111 MiB / 24.6% CPU)
2,959
(260 MiB / 51.5% CPU)
2,959
(260 MiB / 51.5% CPU)

Linux nginx H1/H2/H3 POST completed (nginx.org mainline). TWP÷YARP H1 ≈ 1.5×; H2 ≈ 1.3×; H3 ≈ 1.1×. TWP÷nginx H3 ≈ 4×.

Windows — lossy / high-RTT (H2 HOL / H3 loss)

Userspace 5 ms one-way delay + 1% TCP connection stall (H1/H2) or UDP datagram drop (H3); 64 KiB GET. H1/H2: median of 3 repeats on windows-latest @ 9d7c2966 — 32866717729 (compare-lossy). H3: GHA Windows userspace UDP shim collapses (sustain 0); published H3 row is the laptop quic-http3 remasure under the same delay/loss workload (Performance Local Lab, `windows-20260822-lossy-h3-quic/).

Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
HTTP/1 · TLS HTTP/1 · plain 🥇 663
(98 MiB / 4.8% CPU)
663
(98 MiB / 4.8% CPU)
634
(137 MiB / 19.6% CPU)
634
(137 MiB / 19.6% CPU)
662
(113 MiB / 5.7% CPU)
662
(113 MiB / 5.7% CPU)
HTTP/2 · TLS HTTP/1 · plain 🥇 59
(122 MiB / 1.7% CPU)
88
(122 MiB / 1.7% CPU)
18
(137 MiB / 0.5% CPU)
18
(137 MiB / 0.5% CPU)
18
(84 MiB / 1.1% CPU)
18
(84 MiB / 1.1% CPU)
HTTP/3 · QUIC HTTP/1 · plain 🥇 1,572 1,572 Not possible (no QUIC) Not possible 0 50

TWP H2 HOL leads (~3.31× YARP). H3 is the protocol-shape win vs H2 HOL on the same lossy session; Win H3 GHA remains 0 (laptop remasure kept above).

Linux — lossy / high-RTT (H2 HOL / H3 loss)

Median of 3 repeats @ 9d7c2966. Source: 32866717729 (compare-lossy; lossy H3 uses quic-http3).

Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
HTTP/1 · TLS HTTP/1 · plain 1,201
(142 MiB / 12.9% CPU)
1,201
(142 MiB / 12.9% CPU)
🥇 1,206
(97 MiB / 11.8% CPU)
1,206
(97 MiB / 11.8% CPU)
1,197
(144 MiB / 16.6% CPU)
1,197
(144 MiB / 16.6% CPU)
HTTP/2 · TLS HTTP/1 · plain 🥇 309
(191 MiB / 6.5% CPU)
309
(191 MiB / 6.5% CPU)
40
(95 MiB / 0.3% CPU)
42
(95 MiB / 0.3% CPU)
40
(118 MiB / 1.4% CPU)
44
(118 MiB / 1.4% CPU)
HTTP/3 · QUIC HTTP/1 · plain 🥇 332
(149 MiB / 13.3% CPU)
332
(149 MiB / 13.3% CPU)
88
(105 MiB / 2.7% CPU)
88
(105 MiB / 2.7% CPU)
330
(176 MiB / 17.9% CPU)
330
(176 MiB / 17.9% CPU)

TWP H2 HOL ≫ YARP (~7.7×). H3 TWP÷YARP ≈ 1×.

Architecture-sensitive

compare-arch isolates slow app readers, origin-early response, H2 duplex, and WebSocket echo. See TWP vs YARP IO model. Laptop 1-rep numbers are on Performance Local Lab.

Median of 3 repeats on matched 4 vCPU / 16 GiB runners @ 9d7c2966 (32866720742) (compare-arch). Slow consumer = 256 KiB GET, 16 KiB read + 8 ms sleep. Early response = 64 KiB POST, origin writes after 8 KiB. Duplex H2 = overlapping 64 KiB POST on H2 TLS↔H2 TLS. WebSocket = echo round-trips/sec.

compare-lossy (slow network) is already published above; it is not a slow app reader.

Windows

Scenario Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
Slow consumer (256 KiB GET, throttled client read) HTTP/1 · TLS HTTP/1 · plain 🥇 248
(91 MiB / 3.8% CPU)
248
(91 MiB / 3.8% CPU)
209
(140 MiB / 24.7% CPU)
209
(140 MiB / 24.7% CPU)
248
(110 MiB / 4.9% CPU)
248
(110 MiB / 4.9% CPU)
Slow consumer (256 KiB GET, throttled client read) HTTP/2 · TLS HTTP/1 · plain 248
(125 MiB / 3.8% CPU)
248
(125 MiB / 3.8% CPU)
166
(137 MiB / 24.6% CPU)
166
(137 MiB / 24.6% CPU)
🥇 249
(112 MiB / 7.4% CPU)
249
(112 MiB / 7.4% CPU)
Slow consumer (256 KiB GET, throttled client read) HTTP/3 · QUIC HTTP/1 · plain 🥇 264
(99 MiB / 17.1% CPU)
264
(99 MiB / 17.1% CPU)
Not possible (no QUIC) Not possible (no QUIC) 264
(160 MiB / 21.3% CPU)
264
(160 MiB / 21.3% CPU)
Early response (origin writes after first request chunk) HTTP/1 · TLS HTTP/1 · plain 🥇 6,507
(84 MiB / 43.0% CPU)
6,881
(84 MiB / 43.0% CPU)
347
(137 MiB / 24.9% CPU)
419
(137 MiB / 24.9% CPU)
3,256
(117 MiB / 39.5% CPU)
3,606
(117 MiB / 39.5% CPU)
Early response (origin writes after first request chunk) HTTP/2 · TLS HTTP/1 · plain 🥇 5,011
(153 MiB / 48.6% CPU)
5,011
(153 MiB / 48.6% CPU)
0
(139 MiB / 24.8% CPU)
383
(139 MiB / 24.8% CPU)
2,967
(97 MiB / 39.6% CPU)
3,184
(97 MiB / 39.6% CPU)
Early response (origin writes after first request chunk) HTTP/3 · QUIC HTTP/1 · plain 🥇 2,153
(125 MiB / 42.8% CPU)
2,256
(125 MiB / 42.8% CPU)
Not possible (no QUIC) Not possible (no QUIC) 1,874
(154 MiB / 53.3% CPU)
2,034
(154 MiB / 53.3% CPU)
Duplex (both directions live) HTTP/2 · TLS HTTP/2 · TLS 🥇 784
(124 MiB / 13.2% CPU)
1,270
(124 MiB / 13.2% CPU)
Not possible Not possible 18
(120 MiB / 30.7% CPU)
2,135
(120 MiB / 30.7% CPU)
Duplex (WebSocket / extended CONNECT) HTTP/1 · TLS HTTP/1 · plain 🥇 32,785
(97 MiB / 40.8% CPU)
32,785
(97 MiB / 40.8% CPU)
19,252
(138 MiB / 24.9% CPU)
19,803
(138 MiB / 24.9% CPU)
30,820
(85 MiB / 43.6% CPU)
30,820
(85 MiB / 43.6% CPU)

Linux

Scenario Client Origin TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
Slow consumer (256 KiB GET, throttled client read) HTTP/1 · TLS HTTP/1 · plain 🥇 468
(115 MiB / 9.5% CPU)
468
(115 MiB / 9.5% CPU)
416
(96 MiB / 9.6% CPU)
416
(96 MiB / 9.6% CPU)
418
(138 MiB / 13.6% CPU)
418
(138 MiB / 13.6% CPU)
Slow consumer (256 KiB GET, throttled client read) HTTP/2 · TLS HTTP/1 · plain 473
(131 MiB / 17.8% CPU)
473
(131 MiB / 17.8% CPU)
462
(96 MiB / 17.3% CPU)
462
(96 MiB / 17.3% CPU)
🥇 474
(146 MiB / 23.5% CPU)
474
(146 MiB / 23.5% CPU)
Slow consumer (256 KiB GET, throttled client read) HTTP/3 · QUIC HTTP/1 · plain 🥇 474
(125 MiB / 34.3% CPU)
474
(125 MiB / 34.3% CPU)
119
(100 MiB / 11.4% CPU)
238
(100 MiB / 11.4% CPU)
472
(193 MiB / 40.0% CPU)
472
(193 MiB / 40.0% CPU)
Early response (origin writes after first request chunk) HTTP/1 · TLS HTTP/1 · plain 🥇 5,039
(149 MiB / 45.3% CPU)
5,039
(149 MiB / 45.3% CPU)
3,904
(98 MiB / 49.4% CPU)
3,904
(98 MiB / 49.4% CPU)
3,425
(175 MiB / 55.3% CPU)
3,425
(175 MiB / 55.3% CPU)
Early response (origin writes after first request chunk) HTTP/2 · TLS HTTP/1 · plain 🥇 3,661
(233 MiB / 44.1% CPU)
3,661
(233 MiB / 44.1% CPU)
0
(103 MiB / 24.6% CPU)
1,803
(103 MiB / 24.6% CPU)
2,370
(148 MiB / 47.6% CPU)
2,570
(148 MiB / 47.6% CPU)
Early response (origin writes after first request chunk) HTTP/3 · QUIC HTTP/1 · plain 🥇 3,018
(193 MiB / 43.5% CPU)
3,018
(193 MiB / 43.5% CPU)
0
(114 MiB / 24.7% CPU)
545
(114 MiB / 24.7% CPU)
2,232
(262 MiB / 46.7% CPU)
2,232
(262 MiB / 46.7% CPU)
Duplex (both directions live) HTTP/2 · TLS HTTP/2 · TLS 🥇 185
(124 MiB / 9.0% CPU)
282
(124 MiB / 9.0% CPU)
Not possible Not possible 138
(139 MiB / 44.6% CPU)
1,882
(139 MiB / 44.6% CPU)
Duplex (WebSocket / extended CONNECT) HTTP/1 · TLS HTTP/1 · plain 35,088
(121 MiB / 44.5% CPU)
35,088
(121 MiB / 44.5% CPU)
🥇 39,303
(97 MiB / 37.1% CPU)
39,303
(97 MiB / 37.1% CPU)
32,013
(122 MiB / 44.9% CPU)
32,013
(122 MiB / 44.9% CPU)

Slow consumer is sleep-bound; H1/H2/H3 sit in the same band. Early-response H1/H2/H3: TWP leads (H1 early ≈ 2.00× / 1.47× YARP Win/Linux). Duplex H2: YARP leads by design — Win ≈ 0.59× (1,270 / 2,135), Linux ≈ 0.15× (282 / 1,882); irreducible concurrent-copier cell (see IO model). WebSocket: TWP÷YARP Windows ≈ 1.06×; Linux nginx leads.

TLS termination cost (H1 TLS → cleartext origin)

Isolates keep-alive tiny GET vs new connection per request (handshake-dominated) vs keep-alive 256 KiB. Product comparison uses RPS and end-to-end latency; TWP can also capture ClientTlsTiming when TWP_RPS_CAPTURE_TLS=1 (child process) — nginx/YARP have no equivalent hook.

Windows

Median of 3 repeats on windows-latest @ 9d7c2966. Source: Actions 32866723562 (compare-tls-cost). Absolute RPS on GHA swings hard; prefer TWP÷YARP.

Workload TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
Keep-alive · tiny GET 🥇 20,709
(82 MiB / 48.3% CPU)
20,709
(82 MiB / 48.3% CPU)
9,096
(137 MiB / 24.8% CPU)
9,158
(137 MiB / 24.8% CPU)
17,934
(103 MiB / 48.1% CPU)
17,934
(103 MiB / 48.1% CPU)
New-connection · tiny GET 🥇 739
(65 MiB / 10.4% CPU)
745
(65 MiB / 10.4% CPU)
252
(136 MiB / 24.2% CPU)
256
(136 MiB / 24.2% CPU)
591
(93 MiB / 10.1% CPU)
607
(93 MiB / 10.1% CPU)
Keep-alive · 256 KiB GET 🥇 2,698
(87 MiB / 46.2% CPU)
2,971
(87 MiB / 46.2% CPU)
172
(137 MiB / 24.7% CPU)
174
(137 MiB / 24.7% CPU)
2,569
(134 MiB / 44.0% CPU)
2,569
(134 MiB / 44.0% CPU)

Linux

Median of 3 repeats @ 9d7c2966. Source: Actions 32866723562 (compare-tls-cost).

Workload TWP sustain TWP peak nginx sustain nginx peak YARP sustain YARP peak
Keep-alive · tiny GET 23,687
(104 MiB / 49.1% CPU)
23,687
(104 MiB / 49.1% CPU)
🥇 25,897
(95 MiB / 41.3% CPU)
26,177
(95 MiB / 41.3% CPU)
20,716
(133 MiB / 50.5% CPU)
20,716
(133 MiB / 50.5% CPU)
New-connection · tiny GET 962
(124 MiB / 47.5% CPU)
973
(124 MiB / 47.5% CPU)
🥇 1,005
(96 MiB / 44.2% CPU)
1,008
(96 MiB / 44.2% CPU)
941
(148 MiB / 45.8% CPU)
941
(148 MiB / 45.8% CPU)
Keep-alive · 256 KiB GET 🥇 2,690
(126 MiB / 36.5% CPU)
2,690
(126 MiB / 36.5% CPU)
1,749
(96 MiB / 53.6% CPU)
1,749
(96 MiB / 53.6% CPU)
2,146
(172 MiB / 45.9% CPU)
2,146
(172 MiB / 45.9% CPU)

All three workloads are >1.00× YARP on both OS. nginx leads Linux keep-alive tiny and Linux new-connection; TWP is second, YARP third.

Other measurements

What Result
HTTPS TTFB vs direct (median, 14 hosts) Cold ≈ parity (−1 ms); warm −25 ms (proxy faster)
HTTP/1 loopback GET (no body intercept) ~128 µs, ~9.9 KB allocated / request
Basic example footprint (Release, after load) ~74 MB working set · ~24–29 MB private bytes
dotnet run -c Release --project benchmarks/Titanium.Web.Proxy.Benchmarks -- --filter '*Throughput*'

Local laptop BDN @ 9d7c2966 (Release):

Benchmark Setup Mean Allocated / op
HTTP/1 GET through proxy Passthrough 128 µs 9.9 KB
HTTP/2 multiplexed GETs 10 concurrent streams 253 µs / batch ~4.4 KB / request

Raising limits on large hosts

There is no artificial upper clamp on server defaults. Per-endpoint overrides:

Knob Scope Default Override
ProxyServer.MaxCachedConnections process, per upstream host 128 any ≥ 1
ProxyEndPoint.MaxCachedConnections endpoint → pool depth for that EP’s sessions null (use server) e.g. 256 on reverse EP
ProxyEndPoint.MaxConcurrentClients endpoint admission null (off) any ≥ 1
ResourceLimits.MaxConcurrentStreamsPerConnection H2 streams 256 ProxyResourceLimits.Create(...)
TransparentQuicProxyEndPoint.MaxInboundBidirectionalStreams H3 100 (probe uses 256) property on EP
ForwardCleartext transparent TLS terminate false true + decrypt
proxy.MaxCachedConnections = 512;
proxy.ResourceLimits = ProxyResourceLimits.Create(
    /* … */,
    maxConcurrentStreamsPerConnection: 1000,
    maxCachedConnectionsPerHost: 512,
    /* … */);

var ep = new TransparentProxyEndPoint(IPAddress.Any, 443, decryptSsl: true)
{
    ForwardHost = "127.0.0.1",
    ForwardPort = 8080,
    ForwardCleartext = true,
    MaxCachedConnections = 256,
    GenericCertificateName = "example.com"
};
ep.BeforeSslAuthenticate += (_, a) =>
{
    a.UpstreamHttpProtocol = UpstreamHttpProtocol.Http11;
    a.AllowHttpProtocolTranslation = true; // HTTP/2 client → HTTP/1 origin
    return Task.CompletedTask;
};

Clone this wiki locally