codebehind
Flagship · C# · engine: kestrel · standard configuration · completeness 4/4
CodeBehind 4.8.2 on ASP.NET Core and Kestrel. Routes via CodeBehind controller classes under wwwroot/*/Default.aspx, JSON through System.Text.Json with web defaults, gzip and brotli through ResponseCompression at level 1, json-tls on 8081, static files on 8081, dataset loaded once at startup.
Achievements
🥇 1 Gold. 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 | Efficiency · Latency-10K | 1 of 89 |
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 | 46 of 89 | 1866 |
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 | 135 of 159 (84.9%) | 24 |
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-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD) | 400/405/501 or close | 200, connection left open |
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-TE-HTTP10 Transfer-Encoding in HTTP/1.0 request must be rejected (RFC 9112 §6.1, MUST) | 400 or close | 200, connection closed (Used TE (treated as chunked)) |
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-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 left open |
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-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 |
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-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 | 200, connection closed |
MAL-POST-CL-HUGE-NO-BODY POST with Content-Length: 999999999 but no body — tests timeout vs memory allocation (MUST) | 400/413/close/timeout | 200, connection closed |
Every result
Alpha Round, 11 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,147,372 | 3.57ms | 9.50ms | 5664.9% | 426MiB |
| Connection | Pipelined | 4,096 | 5,734,755 | 11.43ms | 43.30ms | 5969.5% | 459MiB |
| Connection | Short-lived | 4,096 | 451,455 | 2.78ms | 12.20ms | 3291.9% | 186MiB |
| Concurrency | Async Delay | 32,000 | 927,008 | 34.46ms | 64.10ms | 4777.0% | 1.7GiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 134.6us | 1919.0us | 122.2% | 157MiB |
| Efficiency | Latency-1M | 1,024 | 997,330 | 858.5us | 5406.0us | 3926.7% | 234MiB |
| Workload | JSON Comp | 4,096 | 298,904 | 13.93ms | 34.20ms | 5854.1% | 629MiB |
| Workload | JSON Comp | 16,384 | 299,474 | 25.81ms | 50.40ms | 5879.3% | 744MiB |
| Workload | JSON TLS | 4,096 | 432,839 | 9.66ms | 144.69ms | 6142.6% | 770MiB |
| Workload | 8Gbit | 512 | 49,397 | 203.6us | 1617.0us | 963.3% | 282MiB |
| Workload | Static TLS | 1,024 | 101,784 | 10.35ms | 95.34ms | 6090.2% | 409MiB |
Compared with
The C# web frameworks around codebehind 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 codebehind | |
|---|---|---|---|
| genhttp-ioxide | 5895 | +216% | head to head |
| genhttp-kestrel | 2120 | +14% | head to head |
| fastendpoints | 1876 | +1% | head to head |
| sisk | 1272 | -32% | head to head |
| watson | 440 | -76% | head to head |
Compare codebehind with any C# entry · Compare codebehind with any entry, in any language · Every C# entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry