HttpArena
Frameworks

sockets

Engine · C# · engine: System.Net.Sockets

HTTP/1.1 written directly on System.Net.Sockets, with no server library above it. One listening socket per core through SO_REUSEPORT, so a connection is accepted, read and answered on the same thread with no handoff. The request line and the three headers the profiles read are parsed off the read buffer with no allocation, and every response a read produced is appended to one write buffer and flushed in a single send, so a pipelined batch costs one syscall rather than one per request. HTTP/1.1 on :8080 and the same over TLS on :8081, terminated with SslStream. HTTP/1.1 only: HTTP/2 would mean HPACK and framing by hand and HTTP/3 a QUIC stack, neither of which says anything more about what the socket layer costs.

Achievements

🥈 1 Silver. Top three of a field, taken in this entry's own league: the family composite, the same composite among entries written in the same language, and each test profile it is scored on. Every field is the one the badges publish, so a medal and a badge always say the same thing. How medals are awarded.

MedalAwardFieldRank
🥈 SilverTest profileEfficiency · Latency-1M2 of 21

Composite rank

Each profile of a family is worth 100 to the entry that leads it, and the composite is the sum over the family, less 2.5% for each of routing, middleware, request and response the entry does not do for you - its completeness factor, which the WebSocket and gRPC families do not carry. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.

FamilyRankComposite
HTTP/1.19 of 213380

Every result

Alpha Round, 10 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0962,433,3201.69ms5.13ms4830.4%294MiB
ConnectionPipelined4,09630,017,7312.18ms5.23ms6203.2%398MiB
ConnectionShort-lived4,0961,281,9193.17ms15.00ms5548.4%870MiB
ConcurrencyAsync Delay32,0001,403,86022.59ms45.90ms4305.1%3.0GiB
EfficiencyLatency-10K1,0249,98073.3us97.0us104.0%82MiB
EfficiencyLatency-1M1,024998,11496.1us350.0us2953.5%89MiB
WorkloadJSON Comp4,096671,4436.08ms13.70ms6213.7%926MiB
WorkloadJSON Comp16,384659,77924.60ms60.70ms6052.1%2.3GiB
WorkloadJSON TLS4,096890,5185.01ms95.41ms6197.8%1.2GiB
Workload8Gbit51249,315102.1us134.0us515.4%158MiB

Compared with

The C# entries around sockets on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs sockets
genhttp-ioxide6118+81%head to head
minima-sync3723+10%head to head
simplew3682+9%head to head
genhttp-kestrel3002-11%head to head
carter2989-12%head to head

Compare sockets with any C# entry · Compare sockets with any entry, in any language · Every C# entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry