Skip to content

proa: CON-1M and CON-1M-TLS - #1852

Closed
hariria wants to merge 1 commit into
MDA2AV:mainfrom
hariria:proa-connections-1m
Closed

hariria wants to merge 1 commit into
MDA2AV:mainfrom
hariria:proa-connections-1m

Conversation

@hariria

@hariria hariria commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Subscribe Proa to the connections-1m (CON-1M) and connections-1m-tls (CON-1M-TLS) held-connection profiles from #1815.

Changes

  • frameworks/proa/src/main.rs:
    • Mount /baseline11 (GET and POST) on the TLS 1.3 :8081 router (tls_app), which previously only served /json/{count} and /echo.
    • Disable TLS 1.3 post-handshake session tickets (config.send_tls13_tickets = 0) to avoid emitting 2M unnecessary NewSessionTicket records during the 1M-connection ramp-up.
    • Pass h1.serve_connection(...) directly to tokio::spawn in serve_plain without an extra outer async move wrapper (slightly smaller per-connection task footprint).
  • frameworks/proa/meta.json:
    • Subscribe to connections-1m and connections-1m-tls.

Listener & memory check

  • Both listeners already bind 0.0.0.0:8080 and 0.0.0.0:8081 with per-worker SO_REUSEPORT (listen(65535)), keep-alive enabled with no short idle timeout, and no connection cap.
  • Local 4,000-connection keep-alive measurements (>5.5s idle verified):
    • Plain HTTP (:8080): 18.14 KiB/conn userspace RSS (~17.3 GiB for 1M connections; dominated by Hyper's two 8 KiB buffers).
    • TLS 1.3 (:8081): 26.14 KiB/conn userspace RSS (~24.9 GiB for 1M connections; well within the 96 GiB cap).

@hariria

hariria commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

/benchmark -f proa -t connections-1m,connections-1m-tls --save

@github-actions

Copy link
Copy Markdown
Contributor

👋 Benchmark request received. A collaborator will review and approve the run.

@hariria

hariria commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1853, which combines CON-1M / CON-1M-TLS with HTTP/2, h2c, HTTP/3, gRPC, and WebSocket into a single PR.

@hariria hariria closed this Nov 22, 2026
@hariria
hariria deleted the proa-connections-1m branch November 22, 2026 20:17
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This run's results were not saved: the push to hariria/HttpArena was refused, most likely a fork that does not allow edits from maintainers. Nothing was committed, and the board keeps the numbers it has. Save them with a new run.

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark Results

Framework: proa | Test: connections-1m,connections-1m-tls

Test Conn RPS Rate CPU/req p99 p99.9 CPU Mem Δ RPS Δ Mem
connections-1m 1000000 250,000 1.0000 31.57us 139.0us 200.0us 692.6% 20.1GiB NEW NEW
connections-1m-tls 1000000 249,958 0.9998 37.58us 113.0us 152.0us 1420.2% 27.9GiB NEW NEW

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 7446.7 (6 of 112) 9167.2 (1 of 112) +1720.5
Database 2000.0 (1 of 6) 2000.0 (1 of 6) +0.0

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

Full log
   "paced_sends": 5000370,
   "late": 0,
   "max_lag_us": 317
  },
  "connections_active": 1000000
 }
}
[info] CPU 1412.2% | Mem 27.9GiB
httparena-bench-proa
httparena-bench-proa

[run 2/3]
[info] starting a fresh proa for run 2
[info] waiting for server...
[info] server ready
[conn-hold] memory: the client ~3.8 GiB, the kernel ~15.3 GiB, and the server, at 0.1 GiB now, may grow to 96 GiB; 245 GiB available
gcannon: all connections up, settling for 30s
gcannon: warmup done, measuring for 20s
gcannon: measurement done
[conn-hold] 1000000 of 1000000 connections open at the end of the window
{
 "connections": 1000000,
 "connections_open": 1000000,
 "target_rate": 250000,
 "rps": 249968.81,
 "rate_ratio": 0.9999,
 "duration_s": 20.004,
 "bytes_per_sec": 25496548.66,
 "max_schedule_lag_us": 263,
 "latency_us": {
  "mean": 69,
  "p50": 68,
  "p90": 85,
  "p99": 114,
  "p99_9": 153
 },
 "status_codes": {
  "2xx": 5000376,
  "3xx": 0,
  "4xx": 0,
  "5xx": 0
 },
 "errors": {
  "connect": 0,
  "read": 0,
  "timeout": 0
 },
 "reconnects": 0,
 "server_cpu_usec": 187942230,
 "gcannon": {
  "version": "0.8.4",
  "target": "127.0.0.1:8081/baseline11?a=1&b=2",
  "mode": "http",
  "connections": 1000000,
  "threads": 64,
  "pipeline_depth": 1,
  "duration_sec": 20,
  "elapsed_sec": 20.004,
  "requests": 5000377,
  "responses": 5000376,
  "rps": 249966.16,
  "bandwidth_bps": 25496548.66,
  "bytes_read": 510038352,
  "latency_us": {
   "avg": 69,
   "p50": 68,
   "p90": 85,
   "p99": 114,
   "p999": 153,
   "samples": 5000376
  },
  "status": {
   "2xx": 5000376,
   "3xx": 0,
   "4xx": 0,
   "5xx": 0,
   "other": 0
  },
  "errors": {
   "connect": 0,
   "read": 0,
   "timeout": 0
  },
  "reconnects": 0,
  "rate": {
   "target": 250000,
   "achieved": 249966.16,
   "ratio": 0.9999,
   "paced_sends": 5000377,
   "late": 0,
   "max_lag_us": 263
  },
  "connections_active": 1000000
 }
}
[info] CPU 1494.4% | Mem 27.9GiB
httparena-bench-proa
httparena-bench-proa

[run 3/3]
[info] starting a fresh proa for run 3
[info] waiting for server...
[info] server ready
[conn-hold] memory: the client ~3.8 GiB, the kernel ~15.3 GiB, and the server, at 0.1 GiB now, may grow to 96 GiB; 245 GiB available
gcannon: all connections up, settling for 30s
gcannon: warmup done, measuring for 20s
gcannon: measurement done
[conn-hold] 1000000 of 1000000 connections open at the end of the window
{
 "connections": 1000000,
 "connections_open": 1000000,
 "target_rate": 250000,
 "rps": 249957.81,
 "rate_ratio": 0.9998,
 "duration_s": 20.005,
 "bytes_per_sec": 25495621.53,
 "max_schedule_lag_us": 306,
 "latency_us": {
  "mean": 70,
  "p50": 68,
  "p90": 85,
  "p99": 113,
  "p99_9": 152
 },
 "status_codes": {
  "2xx": 5000406,
  "3xx": 0,
  "4xx": 0,
  "5xx": 0
 },
 "errors": {
  "connect": 0,
  "read": 0,
  "timeout": 0
 },
 "reconnects": 0,
 "server_cpu_usec": 187900046,
 "gcannon": {
  "version": "0.8.4",
  "target": "127.0.0.1:8081/baseline11?a=1&b=2",
  "mode": "http",
  "connections": 1000000,
  "threads": 64,
  "pipeline_depth": 1,
  "duration_sec": 20,
  "elapsed_sec": 20.005,
  "requests": 5000406,
  "responses": 5000406,
  "rps": 249957.07,
  "bandwidth_bps": 25495621.53,
  "bytes_read": 510041412,
  "latency_us": {
   "avg": 70,
   "p50": 68,
   "p90": 85,
   "p99": 113,
   "p999": 152,
   "samples": 5000406
  },
  "status": {
   "2xx": 5000406,
   "3xx": 0,
   "4xx": 0,
   "5xx": 0,
   "other": 0
  },
  "errors": {
   "connect": 0,
   "read": 0,
   "timeout": 0
  },
  "reconnects": 0,
  "rate": {
   "target": 250000,
   "achieved": 249957.07,
   "ratio": 0.9998,
   "paced_sends": 5000406,
   "late": 0,
   "max_lag_us": 306
  },
  "connections_active": 1000000
 }
}
[info] CPU 1420.2% | Mem 27.9GiB
[info] run 3 wins on score

=== Best: 249958 req/s (CPU: 1420.2%, Mem: 27.9GiB) ===
[info] exact CPU: 187.90 core-seconds | 37.577 us/req
=== Fixed-rate: cpu/req 37.58us | p99 113.0us | p99.9 152.0us | rate_ratio 0.9998 ===
=== Connections: 1000000 open of 1000000 | connect errors in the window 0 ===
[info] saved results/connections-1m-tls/1000000/proa.json
httparena-bench-proa
httparena-bench-proa
[info] rebuilding site/data/*.json
[updated] /home/diogo/actions-runner/_work/HttpArena/HttpArena/site/data/frameworks.json
[updated] /home/diogo/actions-runner/_work/HttpArena/HttpArena/site/data/results/proa.json - 2 new, 14 total
[updated] /home/diogo/actions-runner/_work/HttpArena/HttpArena/site/data/current.json
[info] done
httparena-postgres
[info] restoring loopback MTU to 65536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant