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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Test profile | Concurrency · CON-1M | 1 of 8 |
| 🥈 Silver | Within its language | C# · Database | 2 of 7 |
| 🥈 Silver | Within its language | C# · HTTP/2 | 2 of 4 |
| 🥉 Bronze | Within its language | C# · HTTP/3 | 3 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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 30 of 87 | 2458 |
| HTTP/2 | 18 of 33 | 604 |
| HTTP/3 | 11 of 16 | 212 |
| gRPC | 7 of 10 | 595 |
| WebSocket | 23 of 31 | 748 |
| Database | 6 of 17 | 711 |
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.
| Suite | Tool | Passed | Failed |
|---|---|---|---|
| HTTP/1.1 | http11probe d50d818 | 146 of 159 (91.8%) | 13 |
| HTTP/2 | h2spec 2.6.0 | 146 of 146 (100%) | 0 |
| HTTP/3 | h3spec v0.1.15 | 47 of 85 (55.3%) | 38 |
| WebSocket (aspnet-websocket) | autobahn-testsuite 25.10.1 | 244 of 244 (100%) | 0 |
HTTP/1.1: what failed
| Test | Expected | Got |
|---|---|---|
RFC9112-5-INVALID-HEADER-NAME Header name with invalid characters (brackets) must be rejected (RFC 9112 §5, MUST) | 400 or close | 200, 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 = warn | 405, connection closed |
COMP-OPTIONS-STAR OPTIONS * is the only valid asterisk-form request (RFC 9112 §3.2.4, MUST) | 2xx or 405; close/timeout = warn | 404, connection left open |
COMP-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD) | 400/405/501 or close | 404, connection closed |
COMP-HOST-EMPTY-VALUE Empty Host header value must be rejected (RFC 9112 §3.2, MUST) | 400 or close | 200, 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 = warn | 505, 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 close | 200, 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 close | 200, connection left open |
SMUG-CHUNK-EXT-CTRL NUL byte in chunk extension must be rejected (RFC 9112 §7.1.1, MUST) | 400 or close | 200, 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 2xx | no response, timed out |
MAL-CONTROL-CHARS-HEADER Control characters in header value should be rejected (MUST) | 400 or close | 200, connection left open |
MAL-LONG-METHOD 100KB method name should be rejected (SHOULD) | 400, 501 or close | 414, connection closed |
MAL-CHUNK-SIZE-OVERFLOW Chunk size with integer overflow must be rejected (MUST) | 400 or close | 500, connection closed |
HTTP/3: what failed
| Test | Expected | Got |
|---|---|---|
| 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.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 1,160,021 | 3.53ms | 9.32ms | 5566.1% | 448MiB |
| Connection | Pipelined | 4,096 | 5,707,195 | 8.15ms | 50.30ms | 6004.9% | 395MiB |
| Connection | Short-lived | 4,096 | 455,028 | 2.10ms | 11.90ms | 2967.7% | 164MiB |
| Concurrency | Async Delay | 32,000 | 944,802 | 31.65ms | 58.60ms | 4682.3% | 1.9GiB |
| Concurrency | CON-1M | 1,000,000 | 250,029 | 6024.0us | 167104.0us | 1651.3% | 17.9GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,956 | 3299.0us | 121900.0us | 2843.8% | 59.6GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 122.9us | 130.0us | 95.1% | 164MiB |
| Efficiency | Latency-1M | 1,024 | 997,482 | 698.0us | 4666.0us | 3937.8% | 214MiB |
| Workload | JSON Comp | 4,096 | 326,688 | 12.86ms | 35.70ms | 6020.8% | 603MiB |
| Workload | JSON Comp | 16,384 | 326,851 | 20.99ms | 44.10ms | 5962.0% | 725MiB |
| Workload | JSON TLS | 4,096 | 475,071 | 8.63ms | 114.88ms | 6015.6% | 900MiB |
| Workload | 8Gbit | 512 | 49,291 | 220.9us | 1788.0us | 747.0% | 218MiB |
| Workload | Static TLS | 1,024 | 89,583 | 11.89ms | 84.60ms | 6057.5% | 519MiB |
| Database | Async DB | 1,024 | 167,383 | 6.11ms | 16.40ms | 2785.7% | 304MiB |
| Database | Fortunes | 1,024 | 53,187 | 19.28ms | 42.00ms | 2903.6% | 377MiB |
| HTTP/2 | Baseline | 256 | 2,106,640 | 11.75ms | 43.84ms | 6079.8% | 1.8GiB |
| HTTP/2 | Baseline | 1,024 | 1,974,425 | 54.89ms | 227.06ms | 6053.9% | 4.6GiB |
| HTTP/2 | Static | 256 | 73,964 | 106.09ms | 711.16ms | 6173.2% | 1.3GiB |
| HTTP/2 | Static | 1,024 | 68,779 | 407.54ms | 1.98s | 6005.9% | 6.6GiB |
| HTTP/2 | Baseline (h2c) | 256 | 2,577,222 | 10.10ms | 46.13ms | 6072.4% | 1.1GiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 2,408,549 | 43.79ms | 189.45ms | 6071.5% | 4.6GiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 1,604,591 | 192.71ms | 454.11ms | 5918.1% | 9.3GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 760,163 | 42.17ms | 218.87ms | 6143.3% | 1.6GiB |
| HTTP/2 | JSON (h2c) | 4,096 | 664,457 | 148.78ms | 530.61ms | 5898.6% | 3.7GiB |
| HTTP/3 | Baseline | 64 | 592,399 | 6.46ms | 23.34ms | 6090.1% | 1.4GiB |
| HTTP/3 | Static | 64 | 60,780 | 66.22ms | 302.08ms | 6107.7% | 2.6GiB |
| gRPC | Unary | 256 | 2,314,989 | 11.45ms | 50.08ms | 6114.2% | 1.3GiB |
| gRPC | Unary | 1,024 | 2,102,142 | 46.52ms | 173.30ms | 5918.9% | 3.4GiB |
| gRPC | Unary TLS | 256 | 2,024,220 | 12.28ms | 46.04ms | 6151.0% | 1.5GiB |
| gRPC | Unary TLS | 1,024 | 1,872,833 | 53.47ms | 166.25ms | 6089.9% | 3.4GiB |
| WebSocket | Echo | 512 | 1,898,253 | 269us | 959us | 5887.7% | 213MiB |
| WebSocket | Echo | 4,096 | 1,867,946 | 2.19ms | 5.23ms | 6307.7% | 368MiB |
| WebSocket | Echo | 16,384 | 1,806,072 | 2.92ms | 6.17ms | 5936.7% | 399MiB |
| WebSocket | Echo Pipelined | 512 | 19,644,262 | 416us | 2.22ms | 5635.3% | 191MiB |
| WebSocket | Echo Pipelined | 4,096 | 20,051,114 | 3.27ms | 7.64ms | 6283.1% | 472MiB |
| WebSocket | Echo Pipelined | 16,384 | 20,471,060 | 4.47ms | 10.70ms | 5871.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.
| Entry | Composite | vs aspnet-minimal | |
|---|---|---|---|
| genhttp-ioxide | 5950 | +142% | head to head |
| genhttp | 3149 | +28% | head to head |
| simplew | 2837 | +15% | head to head |
| carter | 2238 | -9% | head to head |
| genhttp-kestrel | 2150 | -13% | head to head |
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