HttpArena

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.

Composite rank

Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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.118 of 463328

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# HTTP engines around sockets on the HTTP/1.1 composite, and the one leading them. Entries of other leagues are left out: a composite does not carry from one league to another. The last column shows every profile side by side.

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