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.
- Official repository
- Official website
- Benchmark implementation
- All Goose entries, compared
- Open the leaderboard
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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Test profile | Connection · Pipelined | 1 of 10 |
| 🥈 Silver | Family composite | Composite · HTTP/1.1 | 2 of 10 |
| 🥈 Silver | Test profile | Connection · Baseline | 2 of 10 |
| 🥈 Silver | Test profile | Workload · JSON TLS | 2 of 8 |
| 🥉 Bronze | Family composite | Composite · HTTP/3 | 3 of 7 |
| 🥉 Bronze | Test profile | Connection · Short-lived | 3 of 10 |
| 🥉 Bronze | Test profile | HTTP/3 · Baseline | 3 of 7 |
| 🥉 Bronze | Test profile | Workload · Static TLS | 3 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.
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 | 154 of 159 (96.9%) | 5 |
| HTTP/2 | h2spec 2.6.0 | 129 of 146 (88.4%) | 17 |
| HTTP/3 | h3spec v0.1.15 | 75 of 85 (88.2%) | 10 |
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 |
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 close | 501, connection closed |
MAL-NON-ASCII-HEADER-NAME Non-ASCII bytes (UTF-8 ë) in header name must be rejected (MUST) | 400 or close | 200, connection left open |
MAL-NON-ASCII-URL Non-ASCII bytes (UTF-8 é) in URL must be rejected (MUST) | 400 or close | 404, connection left open |
MAL-URL-OVERLONG-UTF8 Overlong UTF-8 encoding of / (0xC0 0xAF) in URL must be rejected (MUST) | 400 or close | 404, connection left open |
HTTP/2: what failed
| Test | Expected | Got |
|---|---|---|
http2/3.5/2 Sends invalid connection preface | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closed | Error: unexpected EOF |
http2/4.2/3 Sends a large size HEADERS frame that exceeds the SETTINGS_MAX_FRAME_SIZE | GOAWAY Frame (Error Code: FRAME_SIZE_ERROR) or Connection closed | DATA 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 letters | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
http2/8.1.2.1/1 Sends a HEADERS frame that contains a unknown pseudo-header field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA 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 response | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA 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 field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
http2/8.1.2.2/1 Sends a HEADERS frame that contains the connection-specific header field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA 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 closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
http2/8.1.2.3/1 Sends a HEADERS frame with empty ":path" pseudo-header field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
http2/8.1.2.3/2 Sends a HEADERS frame that omits ":method" pseudo-header field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
http2/8.1.2.3/3 Sends a HEADERS frame that omits ":scheme" pseudo-header field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
http2/8.1.2.3/4 Sends a HEADERS frame that omits ":path" pseudo-header field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
http2/8.1.2.3/5 Sends a HEADERS frame with duplicated ":method" pseudo-header field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
http2/8.1.2.3/6 Sends a HEADERS frame with duplicated ":scheme" pseudo-header field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
http2/8.1.2.3/7 Sends a HEADERS frame with duplicated ":path" pseudo-header field | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA 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 length | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA 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 length | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:150, flags:0x01, stream_id:1) |
HTTP/3: what failed
| Test | Expected | Got |
|---|---|---|
| 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.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 3,875,163 | 1.06ms | 1.63ms | 6257.2% | 1.6GiB |
| Connection | Pipelined | 4,096 | 43,032,899 | 1.52ms | 2.19ms | 6293.2% | 1.6GiB |
| Connection | Short-lived | 4,096 | 2,639,972 | 1.42ms | 2.25ms | 5622.2% | 1.7GiB |
| Concurrency | Async Delay | 32,000 | 1,955,078 | 16.37ms | 20.30ms | 3935.8% | 2.6GiB |
| Concurrency | CON-1M | 1,000,000 | 249,998 | 72.1us | 131.0us | 781.2% | 7.0GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,956 | 67.0us | 112.0us | 1688.9% | 34.8GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 74.1us | 110.0us | 24.8% | 1.2GiB |
| Efficiency | Latency-1M | 1,024 | 997,686 | 103.8us | 187.0us | 2604.0% | 1.2GiB |
| Workload | JSON Comp | 4,096 | 618,195 | 6.62ms | 15.90ms | 6182.9% | 1.7GiB |
| Workload | JSON Comp | 16,384 | 616,861 | 26.62ms | 42.50ms | 6156.5% | 2.2GiB |
| Workload | JSON TLS | 4,096 | 1,793,949 | 1.48ms | 78.86ms | 5551.3% | 1.8GiB |
| Workload | 8Gbit | 512 | 49,363 | 89.3us | 112.0us | 194.9% | 1.3GiB |
| Workload | Static TLS | 1,024 | 930,231 | 0.99ms | 17.15ms | 6302.7% | 2.1GiB |
| HTTP/2 | Baseline | 256 | 12,794,484 | 1.35ms | 3.11ms | 4256.8% | 1.3GiB |
| HTTP/2 | Baseline | 1,024 | 13,051,850 | 4.14ms | 10.69ms | 4526.4% | 1.4GiB |
| HTTP/2 | Static | 256 | 671,495 | 14.07ms | 43.36ms | 6413.3% | 2.2GiB |
| HTTP/2 | Static | 1,024 | 549,718 | 58.10ms | 144.47ms | 6237.4% | 2.9GiB |
| HTTP/2 | Baseline (h2c) | 256 | 13,326,222 | 1.27ms | 2.82ms | 4368.3% | 1.3GiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 13,827,035 | 3.88ms | 7.81ms | 4554.7% | 1.3GiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 13,364,843 | 15.06ms | 25.49ms | 4540.8% | 1.6GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 3,859,845 | 8.02ms | 19.88ms | 6210.2% | 1.5GiB |
| HTTP/2 | JSON (h2c) | 4,096 | 4,065,810 | 30.99ms | 52.83ms | 6339.5% | 1.9GiB |
| HTTP/3 | Baseline | 64 | 6,606,660 | 611us | 1.09ms | 2258.6% | 3.1GiB |
| HTTP/3 | Static | 64 | 732,587 | 6.20ms | 29.91ms | 3987.5% | 2.4GiB |
| gRPC | Unary | 256 | 6,568,827 | 2.34ms | 3.69ms | 2568.7% | 1.3GiB |
| gRPC | Unary | 1,024 | 6,592,514 | 8.00ms | 12.78ms | 2545.8% | 1.3GiB |
| gRPC | Unary TLS | 256 | 6,459,642 | 2.38ms | 3.45ms | 2541.3% | 1.3GiB |
| gRPC | Unary TLS | 1,024 | 6,457,041 | 8.18ms | 14.56ms | 2636.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