{
 "meta": {
  "date": "2026-11-03",
  "images": {
   "caddy:2.10.2-alpine": "sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d",
   "ferronserver/ferron:3 (3.0.0-rc.10)": "sha256:3278c330c4e0810b2992c1681ed18bf66f1d6f68025d3bb790415d6b4eeffa8d",
   "ghcr.io/junkurihara/rust-rpxy:latest (0.14.0)": "sha256:d6777c0800dbe036e9efcc6480ae7eada5ae215ed85ea0d19443ddee0b08ce81"
  },
  "clients": "Ubuntu 24.04, kernel 6.8, OpenSSL 3.0.13, wrk 4.1.0, Python 3.12.3",
  "cpu_percent": "100 minus mpstat %idle over the middle of each run; steal time counts as busy",
  "note": "Run A digests were not recorded; the images were pulled the same day from the same tags.",
  "scripts": "scripts/run-a.sh produced run A's keep-alive and ApacheBench numbers; run A's wrk Connection: close and rate-limit runs were one-off wrk commands shown in the post. scripts/proxy.sh is the later version with --cpuset-cpus; run A started the same containers without pinning.",
  "list_prices_usd_per_month": {
   "source": "doctl compute size list, 2026-11-03",
   "s-2vcpu-4gb": 24,
   "s-4vcpu-8gb": 48,
   "c-2": 42,
   "g-2vcpu-8gb": 63,
   "m-2vcpu-16gb": 84
  },
  "cpu_models": {
   "s-2vcpu-4gb": "DO-Regular (shared)",
   "c-2": "Xeon Platinum 8280",
   "g-2vcpu-8gb": "Xeon Platinum 8168",
   "m-2vcpu-16gb": "Xeon Gold 6248"
  }
 },
 "runA": {
  "where": "lon1, target s-2vcpu-4gb (shared vCPU), one 4 vCPU client, backend on the target",
  "keepalive_wrk_c100_30s": [
   {
    "proxy": "Caddy",
    "test": "Reused connections",
    "run": "Round 1",
    "req_per_s": 5697.9,
    "p50_ms": 16.47,
    "p99_ms": 48.53,
    "requests": 171458,
    "non_2xx": 0,
    "socket_errors": 0,
    "target_cpu_pct": 98.0,
    "client_cpu_pct": 12.0,
    "id": "Caddy / Reused connections / Round 1"
   },
   {
    "proxy": "Caddy",
    "test": "Reused connections",
    "run": "Round 2",
    "req_per_s": 6153.5,
    "p50_ms": 14.99,
    "p99_ms": 50.55,
    "requests": 185083,
    "non_2xx": 0,
    "socket_errors": 0,
    "target_cpu_pct": 98.1,
    "client_cpu_pct": 10.6,
    "id": "Caddy / Reused connections / Round 2"
   },
   {
    "proxy": "Caddy",
    "test": "New TLS connection per request",
    "run": "Round 1",
    "req_per_s": 1870.0,
    "p50_ms": 28.67,
    "p99_ms": 74.93,
    "requests": 56142,
    "non_2xx": 0,
    "socket_errors": 0,
    "target_cpu_pct": 99.0,
    "client_cpu_pct": 99.1,
    "id": "Caddy / New TLS connection per request / Round 1"
   },
   {
    "proxy": "Ferron",
    "test": "Reused connections",
    "run": "Round 1",
    "req_per_s": 13225.4,
    "p50_ms": 7.04,
    "p99_ms": 17.51,
    "requests": 397258,
    "non_2xx": 0,
    "socket_errors": 0,
    "target_cpu_pct": 98.4,
    "client_cpu_pct": 17.9,
    "id": "Ferron / Reused connections / Round 1"
   },
   {
    "proxy": "Ferron",
    "test": "Reused connections",
    "run": "Round 2",
    "req_per_s": 12906.1,
    "p50_ms": 7.34,
    "p99_ms": 18.07,
    "requests": 387982,
    "non_2xx": 0,
    "socket_errors": 0,
    "target_cpu_pct": 98.3,
    "client_cpu_pct": 17.3,
    "id": "Ferron / Reused connections / Round 2"
   },
   {
    "proxy": "Ferron",
    "test": "New TLS connection per request",
    "run": "Round 1",
    "req_per_s": 2990.1,
    "p50_ms": 21.8,
    "p99_ms": 45.67,
    "requests": 89982,
    "non_2xx": 0,
    "socket_errors": 0,
    "target_cpu_pct": 99.0,
    "client_cpu_pct": 96.9,
    "id": "Ferron / New TLS connection per request / Round 1"
   },
   {
    "proxy": "rpxy",
    "test": "Reused connections",
    "run": "Round 1",
    "req_per_s": 15721.8,
    "p50_ms": 6.17,
    "p99_ms": 12.65,
    "requests": 472155,
    "non_2xx": 0,
    "socket_errors": 0,
    "target_cpu_pct": 98.5,
    "client_cpu_pct": 18.7,
    "id": "rpxy / Reused connections / Round 1"
   },
   {
    "proxy": "rpxy",
    "test": "Reused connections",
    "run": "Round 2",
    "req_per_s": 17820.4,
    "p50_ms": 5.42,
    "p99_ms": 11.35,
    "requests": 535092,
    "non_2xx": 0,
    "socket_errors": 0,
    "target_cpu_pct": 98.8,
    "client_cpu_pct": 22.9,
    "id": "rpxy / Reused connections / Round 2"
   },
   {
    "proxy": "rpxy",
    "test": "New TLS connection per request",
    "run": "Round 1",
    "req_per_s": 3278.2,
    "p50_ms": 16.35,
    "p99_ms": 29.22,
    "requests": 98662,
    "non_2xx": 0,
    "socket_errors": 0,
    "target_cpu_pct": 99.5,
    "client_cpu_pct": 99.8,
    "id": "rpxy / New TLS connection per request / Round 1"
   }
  ],
  "ratelimit_wrk_20s": [
   {
    "id": "Caddy + caddy-ratelimit / Reused connections",
    "proxy": "Caddy + caddy-ratelimit",
    "test": "Reused connections",
    "handled_req_per_s": 9752.5,
    "allowed": 1040,
    "rejected": 194943,
    "reject_status": 429,
    "target_cpu_pct": 97.9
   },
   {
    "id": "Caddy + caddy-ratelimit / New TLS connection per request",
    "proxy": "Caddy + caddy-ratelimit",
    "test": "New TLS connection per request",
    "handled_req_per_s": 2025.1,
    "allowed": 1000,
    "rejected": 39565,
    "reject_status": 429,
    "target_cpu_pct": 98.2
   },
   {
    "id": "Ferron / Reused connections",
    "proxy": "Ferron",
    "test": "Reused connections",
    "handled_req_per_s": 14508.1,
    "allowed": 1099,
    "rejected": 289368,
    "reject_status": 429,
    "target_cpu_pct": 69.1
   },
   {
    "id": "Ferron / New TLS connection per request",
    "proxy": "Ferron",
    "test": "New TLS connection per request",
    "handled_req_per_s": 3359.8,
    "allowed": 1101,
    "rejected": 66380,
    "reject_status": 429,
    "target_cpu_pct": 92.1
   }
  ],
  "ab_handshake_4x25": {
   "caddy-r1": {
    "req_per_s_sum": 1650.2,
    "complete": 49508,
    "failed": 0,
    "cipher": [
     "TLSv1.3,TLS_AES_128_GCM_SHA256,256,128"
    ],
    "max_connect_ms": [
     73,
     63,
     54,
     48
    ]
   },
   "caddy-r2": {
    "req_per_s_sum": 1680.0,
    "complete": 50401,
    "failed": 0,
    "cipher": [
     "TLSv1.3,TLS_AES_128_GCM_SHA256,256,128"
    ],
    "max_connect_ms": [
     65,
     68,
     59,
     76
    ]
   },
   "ferron-r1": {
    "req_per_s_sum": 2709.4,
    "complete": 81285,
    "failed": 81285,
    "cipher": [
     "TLSv1.3,TLS_AES_256_GCM_SHA384,256,256"
    ],
    "max_connect_ms": [
     62,
     76,
     58,
     63
    ]
   },
   "ferron-r2": {
    "req_per_s_sum": 2734.2,
    "complete": 82032,
    "failed": 82032,
    "cipher": [
     "TLSv1.3,TLS_AES_256_GCM_SHA384,256,256"
    ],
    "max_connect_ms": [
     67,
     88,
     69,
     87
    ]
   },
   "rpxy-r1": {
    "req_per_s_sum": 2741.8,
    "complete": 82259,
    "failed": 0,
    "cipher": [
     "TLSv1.3,TLS_AES_256_GCM_SHA384,256,256"
    ],
    "max_connect_ms": [
     1038,
     69,
     75,
     71
    ]
   },
   "rpxy-r2": {
    "req_per_s_sum": 2850.5,
    "complete": 85536,
    "failed": 0,
    "cipher": [
     "TLSv1.3,TLS_AES_256_GCM_SHA384,256,256"
    ],
    "max_connect_ms": [
     77,
     71,
     64,
     65
    ]
   }
  }
 },
 "runB": {
  "where": "lon1, 4 vCPU shared target, proxy pinned to cores 0-1 or 0-3 with --cpuset-cpus, backend unpinned, two 4 vCPU clients",
  "runs": {
   "caddy-0-1-new": {
    "rps": 1996.5,
    "p50": 15.42,
    "p99": 33.18,
    "errors": 0,
    "resumed_pct": 0.0,
    "target_cpu": "55.76",
    "c1_cpu": "56.54",
    "c2_cpu": "56.77"
   },
   "caddy-0-1-reuse": {
    "rps": 2374.1000000000004,
    "p50": 13.67,
    "p99": 35.95,
    "errors": 0,
    "resumed_pct": 99.9,
    "target_cpu": "57.65",
    "c1_cpu": "52.82",
    "c2_cpu": "46.48"
   },
   "caddy-0-1-wrk": {
    "rps": 2506.6800000000003,
    "p50": 46.44,
    "p99": 109.15,
    "errors": 0,
    "resumed_pct": null,
    "target_cpu": "65.72",
    "c1_cpu": "98.46",
    "c2_cpu": "98.64"
   },
   "caddy-0-3-new": {
    "rps": 2906.8,
    "p50": 10.23,
    "p99": 32.11,
    "errors": 0,
    "resumed_pct": 0.0,
    "target_cpu": "84.37",
    "c1_cpu": "69.45",
    "c2_cpu": "71.39"
   },
   "caddy-0-3-reuse": {
    "rps": 3685.3,
    "p50": 8.13,
    "p99": 22.05,
    "errors": 0,
    "resumed_pct": 100.0,
    "target_cpu": "90.71",
    "c1_cpu": "55.53",
    "c2_cpu": "55.49"
   },
   "caddy-0-3-wrk": {
    "rps": 3682.0299999999997,
    "p50": 21.72,
    "p99": 85.68,
    "errors": 0,
    "resumed_pct": null,
    "target_cpu": "95.1",
    "c1_cpu": "99.71",
    "c2_cpu": "99.59"
   },
   "ferron-0-1-new": {
    "rps": 3020.5,
    "p50": 9.02,
    "p99": 43.64,
    "errors": 0,
    "resumed_pct": 0.0,
    "target_cpu": "56.88",
    "c1_cpu": "78.61",
    "c2_cpu": "80.42"
   },
   "ferron-0-1-reuse": {
    "rps": 4035.8999999999996,
    "p50": 7.33,
    "p99": 25.11,
    "errors": 0,
    "resumed_pct": 100.0,
    "target_cpu": "61.92",
    "c1_cpu": "64.67",
    "c2_cpu": "68.13"
   },
   "ferron-0-1-wrk": {
    "rps": 4234.299999999999,
    "p50": 31.52,
    "p99": 61.73,
    "errors": 0,
    "resumed_pct": null,
    "target_cpu": "67.78",
    "c1_cpu": "93.92",
    "c2_cpu": "94.53"
   },
   "ferron-0-3-new": {
    "rps": 4366.700000000001,
    "p50": 7.25,
    "p99": 17.16,
    "errors": 0,
    "resumed_pct": 0.0,
    "target_cpu": "79.29",
    "c1_cpu": "92.29",
    "c2_cpu": "94.86"
   },
   "ferron-0-3-reuse": {
    "rps": 5711.5,
    "p50": 5.34,
    "p99": 14.36,
    "errors": 0,
    "resumed_pct": 100.0,
    "target_cpu": "91.31",
    "c1_cpu": "81.48",
    "c2_cpu": "84.13"
   },
   "ferron-0-3-wrk": {
    "rps": 6200.77,
    "p50": 19.42,
    "p99": 63.69,
    "errors": 0,
    "resumed_pct": null,
    "target_cpu": "98.22",
    "c1_cpu": "97.82",
    "c2_cpu": "98.03"
   },
   "rpxy-0-1-new": {
    "rps": 4089.0,
    "p50": 7.56,
    "p99": 16.24,
    "errors": 0,
    "resumed_pct": 0.0,
    "target_cpu": "63.02",
    "c1_cpu": "90.49",
    "c2_cpu": "92.05"
   },
   "rpxy-0-1-reuse": {
    "rps": 4635.9,
    "p50": 6.77,
    "p99": 16.07,
    "errors": 0,
    "resumed_pct": 100.0,
    "target_cpu": "70.29",
    "c1_cpu": "72.93",
    "c2_cpu": "75.57"
   },
   "rpxy-0-1-wrk": {
    "rps": 5261.24,
    "p50": 20.19,
    "p99": 38.13,
    "errors": 0,
    "resumed_pct": null,
    "target_cpu": "70.23",
    "c1_cpu": "99.73",
    "c2_cpu": "99.57"
   },
   "rpxy-0-3-new": {
    "rps": 4426.8,
    "p50": 7.05,
    "p99": 15.47,
    "errors": 0,
    "resumed_pct": 0.0,
    "target_cpu": "76.05",
    "c1_cpu": "94.49",
    "c2_cpu": "97.68"
   },
   "rpxy-0-3-reuse": {
    "rps": 6077.0,
    "p50": 4.95,
    "p99": 13.48,
    "errors": 0,
    "resumed_pct": 100.0,
    "target_cpu": "90.82",
    "c1_cpu": "87.33",
    "c2_cpu": "91.12"
   },
   "rpxy-0-3-wrk": {
    "rps": 7022.9400000000005,
    "p50": 13.8,
    "p99": 28.3,
    "errors": 0,
    "resumed_pct": null,
    "target_cpu": "98.59",
    "c1_cpu": "99.86",
    "c2_cpu": "99.89"
   }
  }
 },
 "runC": {
  "where": "sfo2, four 2 vCPU target types, proxy and backend sharing both cores, two 4 vCPU clients; keepalive is wrk -c50 per client, new/reuse is tlsload.py with 16 processes per client, 15 s",
  "runs": {
   "s-2vcpu-4gb/caddy": {
    "keepalive": 7121,
    "keepalive_tcpu": "99",
    "keepalive_c1cpu": "7.2",
    "new": 1882,
    "new_tcpu": "98.41",
    "new_c1cpu": "47.65",
    "reuse": 2151,
    "reuse_tcpu": "98.5",
    "reuse_c1cpu": "34.35"
   },
   "s-2vcpu-4gb/ferron": {
    "keepalive": 13898,
    "keepalive_tcpu": "99.63",
    "keepalive_c1cpu": "10.13",
    "new": 2985,
    "new_tcpu": "99.04",
    "new_c1cpu": "77.69",
    "reuse": 3351,
    "reuse_tcpu": "99.27",
    "reuse_c1cpu": "61.39"
   },
   "s-2vcpu-4gb/rpxy": {
    "keepalive": 15388,
    "keepalive_tcpu": "99.36",
    "keepalive_c1cpu": "13.79",
    "new": 3160,
    "new_tcpu": "99.36",
    "new_c1cpu": "80.99",
    "reuse": 3419,
    "reuse_tcpu": "99.68",
    "reuse_c1cpu": "62.05"
   },
   "c-2/caddy": {
    "keepalive": 7411,
    "keepalive_tcpu": "99.04",
    "keepalive_c1cpu": "9.56",
    "new": 1960,
    "new_tcpu": "96.81",
    "new_c1cpu": "60.59",
    "reuse": 2266,
    "reuse_tcpu": "98.73",
    "reuse_c1cpu": "42.67"
   },
   "c-2/ferron": {
    "keepalive": 16466,
    "keepalive_tcpu": "99.41",
    "keepalive_c1cpu": "13.84",
    "new": 3284,
    "new_tcpu": "99.55",
    "new_c1cpu": "84.38",
    "reuse": 3452,
    "reuse_tcpu": "99.59",
    "reuse_c1cpu": "62.84"
   },
   "c-2/rpxy": {
    "keepalive": 19825,
    "keepalive_tcpu": "99.73",
    "keepalive_c1cpu": "14.37",
    "new": 3341,
    "new_tcpu": "98.82",
    "new_c1cpu": "86.88",
    "reuse": 3510,
    "reuse_tcpu": "99.86",
    "reuse_c1cpu": "63.95"
   },
   "g-2vcpu-8gb/caddy": {
    "keepalive": 6794,
    "keepalive_tcpu": "98.81",
    "keepalive_c1cpu": "9.88",
    "new": 1820,
    "new_tcpu": "98.63",
    "new_c1cpu": "49.18",
    "reuse": 2072,
    "reuse_tcpu": "98.73",
    "reuse_c1cpu": "35.95"
   },
   "g-2vcpu-8gb/ferron": {
    "keepalive": 13173,
    "keepalive_tcpu": "99.82",
    "keepalive_c1cpu": "10.19",
    "new": 2929,
    "new_tcpu": "99.68",
    "new_c1cpu": "76.31",
    "reuse": 3088,
    "reuse_tcpu": "99.91",
    "reuse_c1cpu": "51.46"
   },
   "g-2vcpu-8gb/rpxy": {
    "keepalive": 17076,
    "keepalive_tcpu": "99.82",
    "keepalive_c1cpu": "13.62",
    "new": 3093,
    "new_tcpu": "99.73",
    "new_c1cpu": "74.9",
    "reuse": 3215,
    "reuse_tcpu": "99.91",
    "reuse_c1cpu": "54.74"
   },
   "m-2vcpu-16gb/caddy": {
    "keepalive": 7739,
    "keepalive_tcpu": "98.95",
    "keepalive_c1cpu": "7.39",
    "new": 2023,
    "new_tcpu": "98.45",
    "new_c1cpu": "49.34",
    "reuse": 2308,
    "reuse_tcpu": "98.86",
    "reuse_c1cpu": "38.13"
   },
   "m-2vcpu-16gb/ferron": {
    "keepalive": 16733,
    "keepalive_tcpu": "99.5",
    "keepalive_c1cpu": "10.8",
    "new": 3311,
    "new_tcpu": "99.77",
    "new_c1cpu": "78.71",
    "reuse": 3481,
    "reuse_tcpu": "99.86",
    "reuse_c1cpu": "56.73"
   },
   "m-2vcpu-16gb/rpxy": {
    "keepalive": 20029,
    "keepalive_tcpu": "99.73",
    "keepalive_c1cpu": "16.14",
    "new": 3391,
    "new_tcpu": "99.73",
    "new_c1cpu": "81.41",
    "reuse": 3559,
    "reuse_tcpu": "99.95",
    "reuse_c1cpu": "61.7"
   }
  }
 },
 "observations": {
  "hey_first_pass": "Ubuntu's packaged hey: every request failed with 'remote error: tls: internal error' against all three proxies (e.g. 107,238 errors in one 30 s run) while still printing a requests-per-second figure. curl from the same client worked. Raw hey output was overwritten by later runs.",
  "laptop_hey": "hey -z 10s -c 20 from the author's laptop to the public endpoint: 127.1 requests/s, proxy container at 10.8% of one core.",
  "ferron_429": "Ferron rejection: HTTP/2 429 with 'retry-after: 1'.",
  "cache_no_store": "Caching enabled in Ferron and rpxy, gateway restarted with a new revision string between requests: both served the new revision immediately. Ferron header: 'cache-status: FerronCache; fwd=miss; stored=false; detail=response-no-store'.",
  "upstream_reuse_check": "Separate check VM (s-2vcpu-4gb, lon1), 300 sequential HTTP/1.1 requests with Connection: close per proxy: 0 new TIME_WAIT sockets to the backend for all three, 1 to 2 established upstream connections. All three keep upstream connections alive.",
  "close_notify_http11": "openssl s_client, HTTP/1.1 with Connection: close: Caddy and rpxy send a close_notify alert after the response. Ferron sends the full response (content-length: 66) and closes without close_notify; OpenSSL reports 'unexpected eof while reading'.",
  "ab_failed_ferron": "ApacheBench (HTTP/1.0) counted every Ferron response as a Length failure for the same reason."
 }
}
