HttpArena

naati

Infrastructure · Goose

naati v0.1.4 (Clang PGO + ThinLTO), a drop-in replacement for NGINX written in Goose with native Linux io_uring, pure-Goose TLS 1.3 record framing over libcrypto AEAD, pure-Goose QUIC v1 / HTTP/3 with packed UDP GSO and RFC 8899 DPLPMTUD, and built-in brotli_static and gzip_static. Compiled with a Goose HttpArena handler module (harena.goose) using Goose's stdlib json module (stdlib/json.goose) for /json/{count}, plus /baseline11, /baseline2, /echo, /delay/{ms} (native non-blocking timer), /ws (RFC 6455 WebSocket echo), /spec & /spec/headers, and /benchmark.BenchmarkService/GetSum (unary gRPC with HTTP/2 trailers); /pipeline and /static/* run on naati's native return and static-file fast paths. HTTP/1.1 + h2c + WS on :8080, h1 TLS on :8081, h2c on :8082, h2 + h3 on :8443, and live-reloading TLS on :9000 via ssl_certificate variables and ssl_certificate_cache.

Achievements

🥇 1 Gold · 🥈 3 Silver · 🥉 4 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 profileConnection · Pipelined1 of 10
🥈 SilverFamily compositeComposite · HTTP/1.12 of 10
🥈 SilverTest profileConnection · Baseline2 of 10
🥈 SilverTest profileWorkload · JSON TLS2 of 8
🥉 BronzeFamily compositeComposite · HTTP/33 of 7
🥉 BronzeTest profileConnection · Short-lived3 of 10
🥉 BronzeTest profileHTTP/3 · Baseline3 of 7
🥉 BronzeTest profileWorkload · Static TLS3 of 8

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.12 of 104625
HTTP/24 of 91142
HTTP/33 of 71472

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 d50d818154 of 159 (96.9%)5
HTTP/2h2spec 2.6.0129 of 146 (88.4%)17
HTTP/3h3spec v0.1.1575 of 85 (88.2%)10

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
SMUG-TE-NOT-FINAL-CHUNKED Transfer-Encoding where chunked is not final — server MUST respond with 400 (RFC 9112 §6.3) (RFC 9112 §6.3, MUST)400 or close501, connection closed
MAL-NON-ASCII-HEADER-NAME Non-ASCII bytes (UTF-8 ë) in header name must be rejected (MUST)400 or close200, connection left open
MAL-NON-ASCII-URL Non-ASCII bytes (UTF-8 é) in URL must be rejected (MUST)400 or close404, connection left open
MAL-URL-OVERLONG-UTF8 Overlong UTF-8 encoding of / (0xC0 0xAF) in URL must be rejected (MUST)400 or close404, connection left open

HTTP/2: what failed

TestExpectedGot
http2/3.5/2 Sends invalid connection prefaceGOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closedError: unexpected EOF
http2/4.2/3 Sends a large size HEADERS frame that exceeds the SETTINGS_MAX_FRAME_SIZEGOAWAY Frame (Error Code: FRAME_SIZE_ERROR) or Connection closedDATA Frame (length:7, flags:0x01, stream_id:1)
http2/8.1.2/1 Sends a HEADERS frame that contains the header field name in uppercase lettersGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.1/1 Sends a HEADERS frame that contains a unknown pseudo-header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.1/2 Sends a HEADERS frame that contains the pseudo-header field defined for responseGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.1/4 Sends a HEADERS frame that contains a pseudo-header field that appears in a header block after a regular header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.2/1 Sends a HEADERS frame that contains the connection-specific header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.2/2 Sends a HEADERS frame that contains the TE header field with any value other than "trailers"GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.3/1 Sends a HEADERS frame with empty ":path" pseudo-header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.3/2 Sends a HEADERS frame that omits ":method" pseudo-header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.3/3 Sends a HEADERS frame that omits ":scheme" pseudo-header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.3/4 Sends a HEADERS frame that omits ":path" pseudo-header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.3/5 Sends a HEADERS frame with duplicated ":method" pseudo-header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.3/6 Sends a HEADERS frame with duplicated ":scheme" pseudo-header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.3/7 Sends a HEADERS frame with duplicated ":path" pseudo-header fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.6/1 Sends a HEADERS frame with the "content-length" header field which does not equal the DATA frame payload lengthGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)
http2/8.1.2.6/2 Sends a HEADERS frame with the "content-length" header field which does not equal the sum of the multiple DATA frames payload lengthGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:150, flags:0x01, stream_id:1)

HTTP/3: what failed

TestExpectedGot
HTTP/3 servers MUST send H3_MESSAGE_ERROR if a pseudo-header is duplicated [HTTP/3 4.3.1]-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_MESSAGE_ERROR if prohibited pseudo-header fields are present [HTTP/3 4.3]-did not get expected exception: QUICException
HTTP/3 servers MUST send H3_MESSAGE_ERROR if pseudo-header fields exist after fields [HTTP/3 4.3]-did not get expected exception: QUICException
HTTP/3 servers MUST treat a request with connection as malformed [HTTP/3 4.2]-did not get expected exception: QUICException
HTTP/3 servers MUST treat a request with keep-alive as malformed [HTTP/3 4.2]-did not get expected exception: QUICException
HTTP/3 servers MUST treat a request with proxy-connection as malformed [HTTP/3 4.2]-did not get expected exception: QUICException
HTTP/3 servers MUST treat a request with transfer-encoding as malformed [HTTP/3 4.2]-did not get expected exception: QUICException
HTTP/3 servers MUST treat a request with upgrade as malformed [HTTP/3 4.2]-did not get expected exception: QUICException
HTTP/3 servers MUST treat a request with te as malformed [HTTP/3 4.2]-did not get expected exception: QUICException

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,875,1631.06ms1.63ms6257.2%1.6GiB
ConnectionPipelined4,09643,032,8991.52ms2.19ms6293.2%1.6GiB
ConnectionShort-lived4,0962,639,9721.42ms2.25ms5622.2%1.7GiB
ConcurrencyAsync Delay32,0001,955,07816.37ms20.30ms3935.8%2.6GiB
ConcurrencyCON-1M1,000,000249,99872.1us131.0us781.2%7.0GiB
ConcurrencyCON-1M-TLS1,000,000249,95667.0us112.0us1688.9%34.8GiB
EfficiencyLatency-10K1,0249,98274.1us110.0us24.8%1.2GiB
EfficiencyLatency-1M1,024997,686103.8us187.0us2604.0%1.2GiB
WorkloadJSON Comp4,096618,1956.62ms15.90ms6182.9%1.7GiB
WorkloadJSON Comp16,384616,86126.62ms42.50ms6156.5%2.2GiB
WorkloadJSON TLS4,0961,793,9491.48ms78.86ms5551.3%1.8GiB
Workload8Gbit51249,36389.3us112.0us194.9%1.3GiB
WorkloadStatic TLS1,024930,2310.99ms17.15ms6302.7%2.1GiB
HTTP/2Baseline25612,794,4841.35ms3.11ms4256.8%1.3GiB
HTTP/2Baseline1,02413,051,8504.14ms10.69ms4526.4%1.4GiB
HTTP/2Static256671,49514.07ms43.36ms6413.3%2.2GiB
HTTP/2Static1,024549,71858.10ms144.47ms6237.4%2.9GiB
HTTP/2Baseline (h2c)25613,326,2221.27ms2.82ms4368.3%1.3GiB
HTTP/2Baseline (h2c)1,02413,827,0353.88ms7.81ms4554.7%1.3GiB
HTTP/2Baseline (h2c)4,09613,364,84315.06ms25.49ms4540.8%1.6GiB
HTTP/2JSON (h2c)1,0243,859,8458.02ms19.88ms6210.2%1.5GiB
HTTP/2JSON (h2c)4,0964,065,81030.99ms52.83ms6339.5%1.9GiB
HTTP/3Baseline646,606,660611us1.09ms2258.6%3.1GiB
HTTP/3Static64732,5876.20ms29.91ms3987.5%2.4GiB
gRPCUnary2566,568,8272.34ms3.69ms2568.7%1.3GiB
gRPCUnary1,0246,592,5148.00ms12.78ms2545.8%1.3GiB
gRPCUnary TLS2566,459,6422.38ms3.45ms2541.3%1.3GiB
gRPCUnary TLS1,0246,457,0418.18ms14.56ms2636.2%1.5GiB

Compare naati with any Goose entry · Compare naati with any entry, in any language · Every Goose entry, ranked

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