HttpArena

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.

MedalAwardFieldRank
🥇 GoldTest profileEfficiency · Latency-10K1 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.

FamilyRankComposite
HTTP/1.146 of 891866

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 d50d818135 of 159 (84.9%)24

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-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD)400/405/501 or close200, connection left open
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-TE-HTTP10 Transfer-Encoding in HTTP/1.0 request must be rejected (RFC 9112 §6.1, MUST)400 or close200, 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 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-UNDERSCORE Chunk size with underscores (1_0) must be rejected (RFC 9112 §7.1, MUST)400 or close200, connection closed
SMUG-CHUNK-HEX-PREFIX Chunk size with 0x prefix must be rejected (RFC 9112 §7.1, MUST)400 or close200, connection closed
SMUG-CHUNK-SIZE-PLUS Chunk size with leading plus sign must be rejected (RFC 9112 §7.1, MUST)400 or close200, connection closed
SMUG-CHUNK-SIZE-TRAILING-OWS Chunk size with trailing whitespace before CRLF must be rejected (RFC 9112 §7.1, MUST)400 or close200, connection closed
SMUG-CHUNK-LEADING-SP Chunk size with leading space must be rejected (RFC 9112 §7.1, MUST)400 or close200, connection closed
SMUG-CHUNK-MISSING-TRAILING-CRLF Chunk data without trailing CRLF must be rejected (RFC 9112 §7.1, MUST)400 or close200, 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 close200, connection closed
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-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 close200, 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 2xxno response, timed out
SMUG-CHUNK-NEGATIVE Negative chunk size must be rejected (RFC 9112 §7.1, MUST)400 or close200, 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 close200, connection closed
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 close200, 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/timeout200, connection closed

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0961,147,3723.57ms9.50ms5664.9%426MiB
ConnectionPipelined4,0965,734,75511.43ms43.30ms5969.5%459MiB
ConnectionShort-lived4,096451,4552.78ms12.20ms3291.9%186MiB
ConcurrencyAsync Delay32,000927,00834.46ms64.10ms4777.0%1.7GiB
EfficiencyLatency-10K1,0249,983134.6us1919.0us122.2%157MiB
EfficiencyLatency-1M1,024997,330858.5us5406.0us3926.7%234MiB
WorkloadJSON Comp4,096298,90413.93ms34.20ms5854.1%629MiB
WorkloadJSON Comp16,384299,47425.81ms50.40ms5879.3%744MiB
WorkloadJSON TLS4,096432,8399.66ms144.69ms6142.6%770MiB
Workload8Gbit51249,397203.6us1617.0us963.3%282MiB
WorkloadStatic TLS1,024101,78410.35ms95.34ms6090.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.

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