[C#] Add minima - HTTP/1.1#822
Merged
Merged
Conversation
dd7770c to
2a5d944
Compare
Owner
Author
|
/benchmark -f minima |
Contributor
|
👋 |
Contributor
Benchmark ResultsFramework:
Full log |
The Minima io_uring engine serving the H1-isolated profiles: baseline,
pipelined, limited-conn, and json. Vendors the current Minima engine
unchanged — per-reactor SO_REUSEPORT + multishot accept, multishot recv
into a provided buffer ring, RCA=false inline continuations with the
reactor-thread short-circuit on buffer return/flush/recycle. The request
handler is hand-written on Minima's raw recv/send API (no HTTP framework):
request line, headers, Content-Length + chunked bodies, keep-alive,
pipelining, fragmented reads, plus a /json/{count}?m=N serializer over the
mounted dataset (per-item static JSON precomputed at startup, dynamic
total = price*quantity*m appended per request).
Endpoints: /baseline11?a=&b= -> a+b(+body); /pipeline -> ok;
/json/{count}?m=N -> application/json. Validated against the full contract
(including the validator's json count/total checks) natively and via the
Docker build.
Owner
Author
|
/benchmark -f minima |
Contributor
|
👋 |
Contributor
Benchmark ResultsFramework:
Full log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Minima io_uring engine serving the H1-isolated profiles (
baseline,pipelined,limited-conn) —engine-tier. Minima is a from-scratch C# multi-reactor io_uring server; this vendors the engine unchanged and adds a hand-rolled HTTP/1.1 handler (no HTTP framework). It's the HTTP/1.1 sibling of the mergedminima-ws.Engine (vendored as-is)
Enqueue{Return,Flush,Recycle}(buffer return/flush/recycle hit the ring directly instead of the MPSC queue + eventfd wake, since the handler resumes inline on the reactor thread).Handler (
Program.cs)Hand-rolled HTTP/1.1: request line + headers,
Content-Lengthand chunked bodies, keep-alive, request pipelining (responses batched per drain), and fragmented-read reassembly.GET/POST /baseline11?a=&b=text/plain—a + b(+ POST body as an integer)GET /pipelinetext/plain—okTests
Subscribes to
baseline,pipelined,limited-conn. Verified against the full contract —GET→55, CLPOST→75, chunkedPOST→75,/pipeline→ok, 16× pipelining, keep-alive, fragmented reads,Connection: close— natively and via the Docker build.