HttpArena

aspnet-minimal

Flagship · C# · engine: kestrel · standard configuration · completeness 4/4

Minimal ASP.NET Core server using .NET 11 with Kestrel and minimal API routing.

Achievements

🥇 1 Gold · 🥈 2 Silver · 🥉 1 Bronze. 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
🥇 GoldTest profileConcurrency · CON-1M1 of 8
🥈 SilverWithin its languageC# · Database2 of 7
🥈 SilverWithin its languageC# · HTTP/22 of 4
🥉 BronzeWithin its languageC# · HTTP/33 of 4

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.130 of 872458
HTTP/218 of 33604
HTTP/311 of 16212
gRPC7 of 10595
WebSocket23 of 31748
Database6 of 17711

Protocol compliance

The conformance suites this entry subscribes to, run against it on the benchmark machine: Http11Probe on HTTP/1.1, h2spec on HTTP/2, h3spec on HTTP/3 and Autobahn on WebSocket. A score, not part of the composite. How it works.

SuiteToolPassedFailed
HTTP/1.1http11probe d50d818146 of 159 (91.8%)13
HTTP/2h2spec 2.6.0146 of 146 (100%)0
HTTP/3h3spec v0.1.1547 of 85 (55.3%)38
WebSocket (aspnet-websocket)autobahn-testsuite 25.10.1244 of 244 (100%)0

HTTP/1.1: what failed

TestExpectedGot
RFC9112-5-INVALID-HEADER-NAME Header name with invalid characters (brackets) must be rejected (RFC 9112 §5, MUST)400 or close200, connection left open
COMP-ASTERISK-WITH-GET Asterisk-form (*) request-target with GET must be rejected (RFC 9112 §3.2.4, MUST)400, close, or timeout = warn405, connection closed
COMP-OPTIONS-STAR OPTIONS * is the only valid asterisk-form request (RFC 9112 §3.2.4, MUST)2xx or 405; close/timeout = warn404, connection left open
COMP-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD)400/405/501 or close404, connection closed
COMP-HOST-EMPTY-VALUE Empty Host header value must be rejected (RFC 9112 §3.2, MUST)400 or close200, connection left open
COMP-VERSION-CASE HTTP version is case-sensitive — lowercase 'http' must be rejected (RFC 9112 §2.3, MUST)400, close, or timeout = warn505, connection closed
SMUG-CHUNK-BARE-SEMICOLON Chunk size with bare semicolon and no extension name must be rejected (RFC 9112 §7.1.1, MUST)400 or close200, connection left open
SMUG-CHUNK-EXT-INVALID-TOKEN Chunk extension with invalid token character must be rejected (RFC 9112 §7.1.1, MUST)400 or close200, connection left open
SMUG-CHUNK-EXT-CTRL NUL byte in chunk extension must be rejected (RFC 9112 §7.1.1, MUST)400 or close200, connection left open
SMUG-CHUNK-LF-TRAILER Bare LF in chunked trailer termination — server MAY accept bare LF per RFC 9112 §2.2 (RFC 9112 §7.1, MAY)400 or 2xxno response, timed out
MAL-CONTROL-CHARS-HEADER Control characters in header value should be rejected (MUST)400 or close200, connection left open
MAL-LONG-METHOD 100KB method name should be rejected (SHOULD)400, 501 or close414, connection closed
MAL-CHUNK-SIZE-OVERFLOW Chunk size with integer overflow must be rejected (MUST)400 or close500, connection closed

HTTP/3: what failed

TestExpectedGot
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if original_destination_connection_id is received [Transport 18.2]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if preferred_address is received [Transport 18.2]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if retry_source_connection_id is received [Transport 18.2]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if stateless_reset_token is received [Transport 18.2]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if a parameter value is malformed [Transport 18]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if max_udp_payload_size < 1200 [Transport 7.4 and 18.2]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if ack_delay_exponent > 20 [Transport 7.4 and 18.2]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if max_ack_delay >= 2^14 [Transport 7.4 and 18.2]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if initial_max_streams_bidi > 2^60 [Transport 18.2]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers MUST send TRANSPORT_PARAMETER_ERROR if initial_max_streams_uni > 2^60 [Transport 18.2]-predicate failed on expected exception: QUICException / TransportErrorIsReceived TLSHandshakeFailure ""
QUIC servers SHOULD send PROTOCOL_VIOLATION on an ACK for a packet never sent [Transport 13.1]-predicate failed on expected exception: QUICException / TransportErrorIsReceived FrameEncodingError ""
QUIC servers MUST send PROTOCOL_VIOLATION on no frames [Transport 12.4]-did not get expected exception: QUICException
QUIC servers MUST send PROTOCOL_VIOLATION if PATH_CHALLENGE in Handshake is received [Transport 12.4]-predicate failed on expected exception: QUICException / TransportErrorIsReceived FrameEncodingError ""
QUIC servers MUST send PROTOCOL_VIOLATION if RETIRE_CONNECTION_ID for a sequence number never issued [Transport 19.16]-did not get expected exception: QUICException
QUIC servers MUST send PROTOCOL_VIOLATION if STREAM_DATA_BLOCKED in Handshake is received [Transport 12.4]-predicate failed on expected exception: QUICException / TransportErrorIsReceived FrameEncodingError ""
QUIC servers MUST send PROTOCOL_VIOLATION if DATA_BLOCKED in Handshake is received [Transport 12.4]-predicate failed on expected exception: QUICException / TransportErrorIsReceived FrameEncodingError ""
QUIC servers MUST send PROTOCOL_VIOLATION if NEW_TOKEN is received [Transport 19.7]-did not get expected exception: QUICException
QUIC servers MUST send FRAME_ENCODING_ERROR if invalid MAX_STREAMS is received [Transport 19.11]-predicate failed on expected exception: QUICException / TransportErrorIsReceived StreamLimitError ""
QUIC servers MUST send STREAM_LIMIT_ERROR or FRAME_ENCODING_ERROR if invalid STREAMS_BLOCKED is received [Transport 19.14]-did not get expected exception: QUICException
QUIC servers MUST send unexpected_message TLS alert if KeyUpdate in Handshake is received [TLS 6]-did not get expected exception: QUICException
QUIC servers MUST send unexpected_message TLS alert if KeyUpdate in 1-RTT is received [TLS 6]-did not get expected exception: QUICException
HTTP/3 servers MUST send H3_MESSAGE_ERROR if mandatory pseudo-header fields are absent [HTTP/3 4.3.1]-did not get expected exception: QUICException
HTTP/3 servers MUST send H3_FRAME_ERROR if a SETTINGS frame stops mid-parameter [HTTP/3 7.1]-did not get expected exception: QUICException
HTTP/3 servers treats a repeated setting identifier as an error whatever its value [HTTP/3 7.2.4]-did not get expected exception: QUICException
HTTP/3 servers MUST send H3_ID_ERROR if CANCEL_PUSH names a push ID not allowed [HTTP/3 7.2.3]-did not get expected exception: QUICException
HTTP/3 servers MUST send H3_ID_ERROR if MAX_PUSH_ID goes down [HTTP/3 7.2.7]-did not get expected exception: QUICException
HTTP/3 servers MUST send H3_ID_ERROR if GOAWAY goes up [HTTP/3 5.2]-predicate failed on expected exception: QUICException / ApplicationProtocolErrorIsReceived (ApplicationProtocolError 256) ""
HTTP/3 servers MUST ignore a frame of unknown type, however long [HTTP/3 7.2.8]-uncaught exception: QUICException / ApplicationProtocolErrorIsReceived (ApplicationProtocolError 262) ""
HTTP/3 servers MUST send QPACK_DECOMPRESSION_FAILED if an invalid static table index exists in a field line representation [QPACK 3.1]-did not get expected exception: QUICException
HTTP/3 servers MUST send QPACK_DECOMPRESSION_FAILED if a field line references a dynamic table entry that is not there [QPACK 2.2.3]-did not get expected exception: QUICException
HTTP/3 servers MUST send QPACK_DECOMPRESSION_FAILED if a field line is cut short [QPACK 2.2.3]-did not get expected exception: QUICException
HTTP/3 servers MUST send QPACK_DECOMPRESSION_FAILED if a Huffman string is badly padded [QPACK 4.1.2]-did not get expected exception: QUICException
HTTP/3 servers MUST NOT buffer an over-long frame on a control stream [HTTP/3 7.1]-did not get expected exception: QUICException
HTTP/3 servers MUST send QPACK_ENCODER_STREAM_ERROR if a new dynamic table capacity value exceeds the limit [QPACK 4.3.1]-did not get expected exception: QUICException
HTTP/3 servers MUST send H3_STREAM_CREATION_ERROR if a client opens a push stream [HTTP/3 6.2.2]-did not get expected exception
HTTP/3 servers MUST send H3_CLOSED_CRITICAL_STREAM if a decoder stream is closed [QPACK 4.2]-did not get expected exception: QUICException
HTTP/3 servers MUST send H3_CLOSED_CRITICAL_STREAM if an encoder stream ends inside an instruction [QPACK 4.2]-did not get expected exception: QUICException
HTTP/3 servers MUST send QPACK_DECODER_STREAM_ERROR if Insert Count Increment is 0 [QPACK 4.4.3]-did not get expected exception: QUICException

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0961,160,0213.53ms9.32ms5566.1%448MiB
ConnectionPipelined4,0965,707,1958.15ms50.30ms6004.9%395MiB
ConnectionShort-lived4,096455,0282.10ms11.90ms2967.7%164MiB
ConcurrencyAsync Delay32,000944,80231.65ms58.60ms4682.3%1.9GiB
ConcurrencyCON-1M1,000,000250,0296024.0us167104.0us1651.3%17.9GiB
ConcurrencyCON-1M-TLS1,000,000249,9563299.0us121900.0us2843.8%59.6GiB
EfficiencyLatency-10K1,0249,982122.9us130.0us95.1%164MiB
EfficiencyLatency-1M1,024997,482698.0us4666.0us3937.8%214MiB
WorkloadJSON Comp4,096326,68812.86ms35.70ms6020.8%603MiB
WorkloadJSON Comp16,384326,85120.99ms44.10ms5962.0%725MiB
WorkloadJSON TLS4,096475,0718.63ms114.88ms6015.6%900MiB
Workload8Gbit51249,291220.9us1788.0us747.0%218MiB
WorkloadStatic TLS1,02489,58311.89ms84.60ms6057.5%519MiB
DatabaseAsync DB1,024167,3836.11ms16.40ms2785.7%304MiB
DatabaseFortunes1,02453,18719.28ms42.00ms2903.6%377MiB
HTTP/2Baseline2562,106,64011.75ms43.84ms6079.8%1.8GiB
HTTP/2Baseline1,0241,974,42554.89ms227.06ms6053.9%4.6GiB
HTTP/2Static25673,964106.09ms711.16ms6173.2%1.3GiB
HTTP/2Static1,02468,779407.54ms1.98s6005.9%6.6GiB
HTTP/2Baseline (h2c)2562,577,22210.10ms46.13ms6072.4%1.1GiB
HTTP/2Baseline (h2c)1,0242,408,54943.79ms189.45ms6071.5%4.6GiB
HTTP/2Baseline (h2c)4,0961,604,591192.71ms454.11ms5918.1%9.3GiB
HTTP/2JSON (h2c)1,024760,16342.17ms218.87ms6143.3%1.6GiB
HTTP/2JSON (h2c)4,096664,457148.78ms530.61ms5898.6%3.7GiB
HTTP/3Baseline64592,3996.46ms23.34ms6090.1%1.4GiB
HTTP/3Static6460,78066.22ms302.08ms6107.7%2.6GiB
gRPCUnary2562,314,98911.45ms50.08ms6114.2%1.3GiB
gRPCUnary1,0242,102,14246.52ms173.30ms5918.9%3.4GiB
gRPCUnary TLS2562,024,22012.28ms46.04ms6151.0%1.5GiB
gRPCUnary TLS1,0241,872,83353.47ms166.25ms6089.9%3.4GiB
WebSocketEcho5121,898,253269us959us5887.7%213MiB
WebSocketEcho4,0961,867,9462.19ms5.23ms6307.7%368MiB
WebSocketEcho16,3841,806,0722.92ms6.17ms5936.7%399MiB
WebSocketEcho Pipelined51219,644,262416us2.22ms5635.3%191MiB
WebSocketEcho Pipelined4,09620,051,1143.27ms7.64ms6283.1%472MiB
WebSocketEcho Pipelined16,38420,471,0604.47ms10.70ms5871.1%482MiB

Compared with

The C# web frameworks around aspnet-minimal 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 aspnet-minimal with any C# entry · Compare aspnet-minimal with any entry, in any language · Every C# entry, ranked

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