Repository navigation
proa: add CON-1M, CON-1M-TLS, HTTP/2, HTTP/3, gRPC, and WebSocket - #1853
Conversation
|
/benchmark -f proa -t connections-1m,connections-1m-tls,baseline-h2,static-h2,baseline-h2c,json-h2c,baseline-h3,static-h3,unary-grpc,unary-grpc-tls,echo-ws,echo-ws-pipeline,echo-ws-limited --save |
|
👋 Benchmark request received. A collaborator will review and approve the run. |
…,static-h2,baseline-h2c,json-h2c,baseline-h3,static-h3,unary-grpc,unary-grpc-tls,echo-ws,echo-ws-pipeline,echo-ws-limited [skip ci]
Benchmark ResultsFramework: Run failed; valid partial results follow.
Composite score unavailable: related measurements failed or did not finish; retained results are not a complete new run. Full log |
|
Fixed /benchmark -f proa -t baseline-h3,static-h3 --save |
|
👋 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 |
Expand Proa to cover all scored HTTP/1.1 held-connection profiles (
CON-1M,CON-1M-TLS) and all remaining Overall composite protocol families: HTTP/2 (TLS + h2c), HTTP/3 (QUIC), gRPC (h2c + TLS), and WebSocket.Added profiles
connections-1m(:8080),connections-1m-tls(:8081, TLS 1.3 +/baseline11)baseline-h2,static-h2(:8443TCP, TLS 1.3 + ALPNh2),baseline-h2c,json-h2c(:8082TCP, prior-knowledge h2c)baseline-h3,static-h3(:8443/udp, per-workerSO_REUSEPORTquinn+h3over TLS 1.3 + ALPNh3)unary-grpc(:8080h2c) andunary-grpc-tls(:8443h2+TLS) servingPOST /benchmark.BenchmarkService/GetSumecho-ws,echo-ws-pipeline,echo-ws-limited(:8080GET /ws)Implementation highlights
:8080multiplexing (src/main.rs): peeks the first 4 bytes (PRI) to route prior-knowledge h2c gRPC connections to Hyper HTTP/2 (boxed so the 1M HTTP/1.1 tasks pay zero enum size overhead) and handles fragmentedP/PR/PRIprefixes viaPrefixedStreamwithout hurting normal HTTP/1.1 connections.:8081,:8443): mounts/baseline11on:8081forCON-1M-TLSand disables post-handshake session tickets (config.send_tls13_tickets = 0) to avoid emitting 2M unnecessaryNewSessionTicketrecords during the 1M-connection ramp-up.src/static_files.rs): reads/data/static/*(or pre-compressed.br/.gzsibling offAccept-Encoding) fresh from disk on every request with no custom in-memory file cache, following disk updates immediately.src/grpc.rs): minimal proto3 varintSumRequest/SumReplycodec over Hyper HTTP/2 with propergrpc-status: 0trailing headers.src/ws.rs): Axum/wsroute usinghyper::upgrade::onwith a batched RFC 6455 echo loop (in-place word-unrolled unmasking, text/binary/ping/close handling).src/h3_server.rs): per-workerSO_REUSEPORTUDPquinnendpoints +h3serving/baseline2and/static/*withTLS13_AES_128_GCM_SHA256.Verification
Validate FrameworkCI: 111 passed, 0 failed.cargo clippy --all-targets -- -D warnings,cargo test --locked(including end-to-end QUIC/H3 test forbaseline-h3+static-h3), andcargo build --release --lockedpass.:8080, ~17.6 GiB at 1M) and 26.14 KiB/conn TLS 1.3 (:8081, ~24.9 GiB at 1M), both well under the 96 GiB cap.