Repository navigation
Conversation
…ON-RAMP) Two million connections open over two minutes, evenly, 95% of them idle after one request, while the other 5% keep a fixed 100K req/s: 4,096 of those open first and the rest on the way up. gcannon 0.10.0 drives it (--ramp-up, --idle); the p99 limit is the harness's own, 2 ms, read per five-second interval from its timeline. The result is how far the ramp got before the active connections' p99 went over the limit: every connection opened by the last interval that held it, idle ones included, whatever the server has closed since. Open and closed counts stand next to it, since closing idle connections is a legitimate answer. Score = 100 x reached / 2,000,000. Reference-only. conn_hold.py reads the ramp out of gcannon's timeline (an interval over the limit only ends the ramp when the next one is over too) and requires 0.10.0. The board, its JavaScript and the Python that mirrors it, the docs and the PR comment know the profile. actix, aspnet-minimal, bun, fib, genhttp-ioxide and node subscribe.
|
/benchmark -f genhttp-ioxide -t connections-ramp-h1 |
|
👋 Benchmark request received. A collaborator will review and approve the run. |
The ramp is the measurement, so there is no best-of: one run on a fresh server, after 30 s at the offered rate on the 4,096 floor connections (--settle 30s).
Benchmark ResultsFramework:
Composite score, main against this run, in the board's default view:
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 |
|
/benchmark -f actix -t connections-ramp-h1 |
|
👋 Benchmark request received. A collaborator will review and approve the run. |
Benchmark ResultsFramework:
Composite score, main against this run, in the board's default view:
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 |
|
/benchmark -f aspnet-minimal -t connections-ramp-h1 |
|
👋 Benchmark request received. A collaborator will review and approve the run. |
Benchmark ResultsFramework:
Composite score, main against this run, in the board's default view:
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 |
|
/benchmark -f fib -t connections-ramp-h1 |
|
👋 Benchmark request received. A collaborator will review and approve the run. |
Benchmark ResultsFramework:
Composite score, main against this run, in the board's default view:
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 |
|
/benchmark -f bun -t connections-ramp-h1 |
|
👋 Benchmark request received. A collaborator will review and approve the run. |
Benchmark ResultsFramework:
Composite score, main against this run, in the board's default view:
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 |
A server with a five second keep-alive closes an idle connection so soon that it never holds more than a few percent of the fleet, and scores full marks for how fast it can churn connections. A server may still close an idle connection, but only one it has kept for 30 seconds. validate.sh checks it on 32 connections (validate-keepalive.py: one request, 29 s idle, a second request on the same connection; the second of slack is for coarse timers) and the run is held to the same: conn_hold.py reads from gcannon's timeline how long the connections a server closed had been open, and an interval in which that is under 29 s ends the ramp like one over the p99 limit, as `shed`. It is the average over the closes so far, and stray resets are ignored. actix (5 s) and node (5 s, plus a buffer) had the timeout too short: both are set to 35 s. bun, fib, aspnet-minimal and genhttp-ioxide already keep a connection longer. The Open column of the board is the most connections open at once, not what was left at the end of the run.
Moves the source pin from the 0.26.563 commit to GenHTTP#953's head, and ioxide.pg and ioxide.timer with it. ioxide 0.29.656 stops a reactor from walking its whole connection table every 250 ms when both TCP timeouts are off, as they are here, which put the p99 of the held-connection runs at 1.5 ms on a million connections and 5.5 ms on the two-million ramp.
|
/benchmark -f genhttp-ioxide -t connections-ramp-h1 |
|
👋 Benchmark request received. A collaborator will review and approve the run. |
Benchmark ResultsFramework:
Composite score, main against this run, in the board's default view:
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 |
ReadTimeoutMs and SendTimeoutMs at 35 s, to see what connections-ramp-h1 does once the server sheds idle connections. 35 s is past the 30 s the test asks an idle connection to be kept for. Checked with the image: an idle connection is closed after 35.1 s, one that sends a request every 10 s stays open.
|
/benchmark -f genhttp-ioxide -t connections-ramp-h1 |
|
👋 Benchmark request received. A collaborator will review and approve the run. |
Benchmark ResultsFramework:
Composite score, main against this run, in the board's default view:
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 |
New test
connections-ramp-h1(CON-RAMP): two million connections opened evenly over two minutes, 95% of them idle, while the rest keep a fixed rate going - how many does the server take before the active connections' p99 goes over 2 ms?The run (
--ramp-up,--idle; gcannon ≥ 0.10.0, as on the bench host):The p99 limit is the harness's. gcannon has no stop at a p99, so the whole two minutes run and
conn_hold.pyreads the limit from the timeline: an interval over 2 ms (or under 90% of the offered rate) ends the ramp if the next one is over too. One noisy interval alone is ignored.An idle connection is kept for at least 30 seconds. A server may close an idle one, but not before that: without a floor, a server with a five second keep-alive holds under 80K idle connections at a time (it closes 15.8K a second) and scores full marks for how fast it churns them. It is checked twice:
validate.sh, for entries subscribed to this profile: 32 connections, one request each, 29 s idle, a second request on the same connection. A closed connection or a wrong answer fails, with how long it lasted (scripts/validate-keepalive.py, about half a minute). The second of slack is for timers that are coarse.conn_hold.pyworks out how long the idle connections a server closed had been open (the n-th close is the n-th open for a server that gives each the same time). An interval in which that average is under 29 s ends the ramp, asramp_stop: shed, like one over the p99 limit. Stray resets (under 1%) are ignored. It catches a server that keeps 32 connections but sheds early under load.The result:
ramp_reached, every connection opened by the last interval that held the limit, idle ones included, whether or not the server has closed them since. Closing idle connections after 30 s is a legitimate answer, soconnections_openandidle_closed(Peak open, Closed on the board) stand next to it. Peak open is the most connections open at once, in any interval that held. Score = 100 x reached / 2,000,000. Reference-only.In the diff
profiles.sh,common.sh(memory 128 GiB),benchmark.sh(the run's outcome line, result fields, best-of by score),conn_hold.py(ramp reading, 0.10.0 check),gcannon.sh(arguments),latency_score.py/ the board /gen_leaderboard_data.py(the same score in Python and JavaScript),validate.sh/spec.sh, the PR comment, docs attest-profiles/h1/connections-ramp/..keep_alive, nodekeepAliveTimeout). bun (120 s), fib (2 min), aspnet-minimal (Kestrel's 130 s) and genhttp-ioxide meet it as they are.scripts/tests/test_conn_ramp.py), and for the checker against stand-in servers (scripts/tests/test_validate_keepalive.py).Two choices to confirm
Not done here
conn_hold.py→ parse → score) end to end at 4,000 connections against nginx, with a short keep-alive (it stops,shed) and a long one (it reaches the ceiling), and the p99 limit and the version refusal as before.validate.shwas run on the node entry with both timeouts: passes at 35 s, fails at the default 5 s. actix's change was run natively, not in its image; the other entries rely on their configured or default timeouts (aspnet-minimal and genhttp-ioxide images passed the check).validate.shandlib/changes trigger the full validation sweep; failures that are noise on every sweep are noise here too.🤖 Generated with Claude Code