genhttp
Emerging · C# · standard configuration · completeness 4/4
Lightweight, embeddable and modular C# web server.
- Official repository
- Official website
- Benchmark implementation
- All C# entries, compared
- Open the leaderboard
Achievements
🥈 2 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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥈 Silver | Within its language | C# · HTTP/1.1 | 2 of 11 |
| 🥈 Silver | Within its language | C# · WebSocket | 2 of 6 |
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.
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 | 143 of 159 (89.9%) | 16 |
| WebSocket | autobahn-testsuite 25.10.1 | 133 of 244 (54.5%) | 111 |
HTTP/1.1: what failed
| Test | Expected | Got |
|---|---|---|
COMP-OPTIONS-STAR OPTIONS * is the only valid asterisk-form request (RFC 9112 §3.2.4, MUST) | 2xx or 405; close/timeout = warn | 308, connection left open |
COMP-POST-NO-CL-NO-TE POST with neither Content-Length nor Transfer-Encoding — implicit zero-length body (RFC 9112 §6.3, MUST) | 2xx or close | 500, 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 closed |
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-UNDERSCORE Chunk size with underscores (1_0) must be rejected (RFC 9112 §7.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-HEX-PREFIX Chunk size with 0x prefix must be rejected (RFC 9112 §7.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-SIZE-PLUS Chunk size with leading plus sign must be rejected (RFC 9112 §7.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-SIZE-TRAILING-OWS Chunk size with trailing whitespace before CRLF must be rejected (RFC 9112 §7.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-LEADING-SP Chunk size with leading space must be rejected (RFC 9112 §7.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-MISSING-TRAILING-CRLF Chunk data without trailing CRLF must be rejected (RFC 9112 §7.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-SPILL Chunk declares size 5 but sends 7 bytes — oversized chunk data must be rejected (RFC 9112 §7.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-EXT-CTRL NUL byte in chunk extension must be rejected (RFC 9112 §7.1.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-EXT-CR Bare CR (not CRLF) in chunk extension — some parsers treat CR alone as line ending (RFC 9112 §7.1.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-NEGATIVE Negative chunk size must be rejected (RFC 9112 §7.1, MUST) | 400 or close | 200, connection closed |
SMUG-CHUNK-BARE-CR-TERM Chunk size line terminated by bare CR — not a valid line terminator (RFC 9112 §2.2, MUST) | 400 or close | 200, connection closed |
MAL-CHUNK-SIZE-OVERFLOW Chunk size with integer overflow must be rejected (MUST) | 400 or close | 200, connection closed |
WebSocket: what failed
| Test | Expected | Got |
|---|---|---|
1.1.6 Send text message message with payload of length 65535. | Receive echo'ed text message (with payload as sent). Clean close with normal code. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
1.1.7 Send text message message with payload of length 65536. | Receive echo'ed text message (with payload as sent). Clean close with normal code. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
1.1.8 Send text message message with payload of length 65536. Sent out data in chops of 997 octets. | Receive echo'ed text message (with payload as sent). Clean close with normal code. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
1.2.6 Send binary message message with payload of length 65535. | Receive echo'ed binary message (with payload as sent). Clean close with normal code. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
1.2.7 Send binary message message with payload of length 65536. | Receive echo'ed binary message (with payload as sent). Clean close with normal code. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
1.2.8 Send binary message message with payload of length 65536. Sent out data in chops of 997 octets. | Receive echo'ed binary message (with payload as sent). Clean close with normal code. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
3.1 Send small text message with <b>RSV = 1</b>. | The connection is failed immediately (1002/protocol error), since RSV must be 0, when no extension defining RSV meaning has been negotiated. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
3.2 Send small text message, then send again with <b>RSV = 2</b>, then send Ping. | Echo for first message is received, but then connection is failed immediately, since RSV must be 0, when no extension defining RSV meaning has been negotiated. The Pong is not received. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
3.3 Send small text message, then send again with <b>RSV = 3</b>, then send Ping. Octets are sent in frame-wise chops. Octets are sent in octet-wise chops. | Echo for first message is received, but then connection is failed immediately, since RSV must be 0, when no extension defining RSV meaning has been negotiated. The Pong is not received. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
3.4 Send small text message, then send again with <b>RSV = 4</b>, then send Ping. Octets are sent in octet-wise chops. | Echo for first message is received, but then connection is failed immediately, since RSV must be 0, when no extension defining RSV meaning has been negotiated. The Pong is not received. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
3.5 Send small binary message with <b>RSV = 5</b>. | The connection is failed immediately, since RSV must be 0. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
3.6 Send Ping with <b>RSV = 6</b>. | The connection is failed immediately, since RSV must be 0. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
3.7 Send Close with <b>RSV = 7</b>. | The connection is failed immediately, since RSV must be 0. | Actual events match at least one expected. / close: The close code should have been 1002 or empty |
5.6 Send text Message fragmented into 2 fragments, one ping with payload in-between. | A pong is received, then the message is echo'ed back to us. | Actual events differ from any expected. / close: The spec requires the connection to be failed cleanly here |
5.9 Send unfragmented Text Message after Continuation Frame with FIN = true, where there is nothing to continue, sent in one chop. | The connection is failed immediately, since there is no message to continue. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
5.10 Send unfragmented Text Message after Continuation Frame with FIN = true, where there is nothing to continue, sent in per-frame chops. | The connection is failed immediately, since there is no message to continue. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
5.11 Send unfragmented Text Message after Continuation Frame with FIN = true, where there is nothing to continue, sent in octet-wise chops. | The connection is failed immediately, since there is no message to continue. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
5.12 Send unfragmented Text Message after Continuation Frame with FIN = false, where there is nothing to continue, sent in one chop. | The connection is failed immediately, since there is no message to continue. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
5.13 Send unfragmented Text Message after Continuation Frame with FIN = false, where there is nothing to continue, sent in per-frame chops. | The connection is failed immediately, since there is no message to continue. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
5.14 Send unfragmented Text Message after Continuation Frame with FIN = false, where there is nothing to continue, sent in octet-wise chops. | The connection is failed immediately, since there is no message to continue. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
5.15 Send text Message fragmented into 2 fragments, then Continuation Frame with FIN = false where there is nothing to continue, then unfragmented Text Message, a... | The connection is failed immediately, since there is no message to continue. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
5.16 Repeated 2x: Continuation Frame with FIN = false (where there is nothing to continue), then text Message fragmented into 2 fragments. | The connection is failed immediately, since there is no message to continue. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
5.17 Repeated 2x: Continuation Frame with FIN = true (where there is nothing to continue), then text Message fragmented into 2 fragments. | The connection is failed immediately, since there is no message to continue. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
5.18 Send text Message fragmented into 2 fragments, with both frame opcodes set to text, sent in one chop. | The connection is failed immediately, since all data frames after the initial data frame must have opcode 0. | Actual events differ from any expected. / close: The connection was failed by the wrong endpoint |
5.19 A fragmented text message is sent in multiple frames. After sending the first 2 frames of the text message, a Ping is sent. Then we wait 1s, then we send 2 m... | The peer immediately answers the first Ping before it has received the last text message fragment. The peer pong's back the Ping's payload exactly, and echo's the payload of the fragmented message ... | Actual events differ from any expected. / close: The spec requires the connection to be failed cleanly here |
6.3.1 Send invalid UTF-8 text message unfragmented.<br><br>MESSAGE:<br>cebae1bdb9cf83cebcceb5eda080656469746564 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.3.2 Send invalid UTF-8 text message in fragments of 1 octet, resulting in frames ending on positions which are not code point ends.<br><br>MESSAGE:<br>cebae1bdb9... | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.4.1 Send invalid UTF-8 text message in 3 fragments (frames). First frame payload is valid, then wait, then 2nd frame which contains the payload making the sequen... | The first frame is accepted, we expect to timeout on the first wait. The 2nd frame should be rejected immediately (fail fast on UTF-8). If we timeout, we expect the connection is failed at least th... | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.4.2 Same as Case 6.4.1, but in 2nd frame, we send only up to and including the octet making the complete payload invalid. <br><br>MESSAGE PARTS:<br> PART1 = ceba... | The first frame is accepted, we expect to timeout on the first wait. The 2nd frame should be rejected immediately (fail fast on UTF-8). If we timeout, we expect the connection is failed at least th... | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.4.3 Same as Case 6.4.1, but we send message not in 3 frames, but in 3 chops of the same message frame. <br><br>MESSAGE PARTS:<br> PART1 = cebae1bdb9cf83cebcceb5<... | The first chop is accepted, we expect to timeout on the first wait. The 2nd chop should be rejected immediately (fail fast on UTF-8). If we timeout, we expect the connection is failed at least then... | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.4.4 Same as Case 6.4.2, but we send message not in 3 frames, but in 3 chops of the same message frame. <br><br>MESSAGE PARTS:<br> PART1 = cebae1bdb9cf83cebcceb5f... | The first chop is accepted, we expect to timeout on the first wait. The 2nd chop should be rejected immediately (fail fast on UTF-8). If we timeout, we expect the connection is failed at least then... | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.6.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xce | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.6.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.6.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bd | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.6.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.6.8 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cf83ce | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.6.10 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cf83cebcce | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.8.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf888808080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.8.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc8480808080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.10.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf7bfbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.10.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfbbfbfbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.10.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfdbfbfbfbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.11.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf4908080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.12.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.12.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.12.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.12.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bf80 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.12.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bf80bf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.12.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bf80bf80 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.12.7 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bf80bf80bf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.12.8 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f... | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.13.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc020c120c220c320c420c520c620c720c820c920ca20cb20cc20cd20ce20cf20... | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.13.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe020e120e220e320e420e520e620e720e820e920ea20eb20ec20ed20ee20 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.13.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf020f120f220f320f420f520f620 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.13.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf820f920fa20 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.13.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc20 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc0 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf08080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf8808080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc80808080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xdf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.7 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xefbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.8 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf7bfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.9 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfbbfbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.14.10 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfdbfbfbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.15.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc0e080f08080f8808080fc80808080dfefbff7bfbffbbfbfbffdbfbfbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.16.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfe | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.16.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xff | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.16.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfefeffff | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.17.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc0af | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.17.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe080af | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.17.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf08080af | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.17.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf8808080af | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.17.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc80808080af | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.18.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc1bf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.18.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe09fbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.18.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf08fbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.18.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf887bfbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.18.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc83bfbfbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.19.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.19.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe08080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.19.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf0808080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.19.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf880808080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.19.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc8080808080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.20.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xeda080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.20.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedadbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.20.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedae80 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.20.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedafbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.20.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedb080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.20.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedbe80 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.20.7 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.21.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xeda080edb080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.21.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xeda080edbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.21.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedadbfedb080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.21.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedadbfedbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.21.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedae80edb080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.21.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedae80edbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.21.7 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedafbfedb080 | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
6.21.8 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedafbfedbfbf | The connection is failed immediately, since the payload is not valid UTF-8. | Actual events match at least one expected. / close: The connection was failed by the wrong endpoint |
7.3.2 Send a close frame with payload length 1 | Clean close with protocol error or drop TCP. | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
7.5.1 Send a close frame with invalid UTF8 payload | Clean close with protocol error or invalid utf8 code or dropped TCP. | The close code should have been 1002,1007 or empty / close: The close code should have been 1002,1007 or empty |
7.9.1 Send close with invalid close code 0 | Clean close with protocol error code or drop TCP | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
7.9.2 Send close with invalid close code 999 | Clean close with protocol error code or drop TCP | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
7.9.3 Send close with invalid close code 1004 | Clean close with protocol error code or drop TCP | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
7.9.4 Send close with invalid close code 1005 | Clean close with protocol error code or drop TCP | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
7.9.5 Send close with invalid close code 1006 | Clean close with protocol error code or drop TCP | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
7.9.6 Send close with invalid close code 1016 | Clean close with protocol error code or drop TCP | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
7.9.7 Send close with invalid close code 1100 | Clean close with protocol error code or drop TCP | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
7.9.8 Send close with invalid close code 2000 | Clean close with protocol error code or drop TCP | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
7.9.9 Send close with invalid close code 2999 | Clean close with protocol error code or drop TCP | The close code should have been 1002 or empty / close: The close code should have been 1002 or empty |
Every result
Alpha Round, 19 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,967,052 | 1.93ms | 5.88ms | 5554.4% | 495MiB |
| Connection | Pipelined | 4,096 | 18,341,651 | 3.58ms | 6.79ms | 6433.6% | 269MiB |
| Connection | Short-lived | 4,096 | 1,250,477 | 1.80ms | 17.70ms | 5317.6% | 391MiB |
| Concurrency | Async Delay | 32,000 | 942,195 | 29.42ms | 51.10ms | 3959.3% | 2.6GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 72.7us | 102.0us | 87.0% | 156MiB |
| Efficiency | Latency-1M | 1,024 | 997,830 | 296.6us | 2325.0us | 2613.8% | 172MiB |
| Workload | JSON Comp | 4,096 | 471,025 | 8.01ms | 19.40ms | 6172.1% | 727MiB |
| Workload | JSON Comp | 16,384 | 452,182 | 30.65ms | 77.60ms | 5939.4% | 1.5GiB |
| Workload | JSON TLS | 4,096 | 713,974 | 5.79ms | 80.64ms | 5979.7% | 989MiB |
| Workload | 8Gbit | 512 | 49,402 | 95.5us | 125.0us | 401.6% | 271MiB |
| Workload | Static TLS | 1,024 | 390,724 | 2.74ms | 39.11ms | 5631.8% | 391MiB |
| WebSocket | Echo | 512 | 2,483,481 | 205us | 1.12ms | 5542.5% | 224MiB |
| WebSocket | Echo | 4,096 | 2,363,034 | 1.71ms | 4.75ms | 5496.0% | 618MiB |
| WebSocket | Echo | 16,384 | 2,245,376 | 4.32ms | 10.70ms | 5804.7% | 1.4GiB |
| WebSocket | Echo Pipelined | 512 | 30,309,814 | 269us | 1.75ms | 5584.5% | 266MiB |
| WebSocket | Echo Pipelined | 4,096 | 28,221,993 | 2.16ms | 6.83ms | 5535.0% | 603MiB |
| WebSocket | Echo Pipelined | 16,384 | 28,006,781 | 6.94ms | 16.50ms | 5740.9% | 1.6GiB |
| WebSocket | Echo Short-lived | 512 | 1,159,350 | 151us | 987us | 4961.4% | 296MiB |
| WebSocket | Echo Short-lived | 4,096 | 1,187,020 | 203us | 1.49ms | 5386.2% | 440MiB |
Compared with
The C# web frameworks around genhttp 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 genhttp | |
|---|---|---|---|
| genhttp-ioxide | 6034 | +89% | head to head |
| simplew-tuned | 4061 | +27% | head to head |
| simplew | 2801 | -12% | head to head |
| carter | 2184 | -32% | head to head |
Compare genhttp with any C# entry · Compare genhttp with any entry, in any language · Every C# entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry