roxygen
Engine · Rust
Meta's Roxygen, an HTTP/1.1 and HTTP/2 library that brings Proxygen's design to Rust. Serves h2c and HTTP/2 over rustls on Roxygen's owned HTTP/2 driver, which polls every stream of a connection from one future instead of running a task per request.
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 | Test profile | HTTP/2 · Baseline | 2 of 17 |
| 🥈 Silver | Test profile | HTTP/2 · Baseline (h2c) | 2 of 15 |
Composite rank
Each profile of a family is worth 1,000 to the entry that leads it, 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/2 | 4 of 18 | 2728 |
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/2 | h2spec 2.6.0 | 114 of 146 (78.1%) | 32 |
HTTP/2: what failed
| Test | Expected | Got |
|---|---|---|
http2/5.1/1 idle: Sends a DATA frame | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closed | Timeout |
http2/5.1/2 idle: Sends a RST_STREAM frame | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closed | Timeout |
http2/5.1/3 idle: Sends a WINDOW_UPDATE frame | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closed | Timeout |
http2/5.1/5 half closed (remote): Sends a DATA frame | GOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closed | HEADERS Frame (length:10, flags:0x04, stream_id:1) |
http2/5.1/6 half closed (remote): Sends a HEADERS frame | GOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closed | DATA Frame (length:7, flags:0x01, stream_id:1) |
http2/5.1/8 closed: Sends a DATA frame after sending RST_STREAM frame | GOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closed | Timeout |
http2/5.1/9 closed: Sends a HEADERS frame after sending RST_STREAM frame | GOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closed | Timeout |
http2/5.1/11 closed: Sends a DATA frame | GOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closed | Timeout |
http2/5.1/12 closed: Sends a HEADERS frame | GOAWAY Frame (Error Code: STREAM_CLOSED) or Connection closed | RST_STREAM Frame (length:4, flags:0x00, stream_id:1) |
http2/5.1.1/2 Sends stream identifier that is numerically smaller than previous | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closed | RST_STREAM Frame (length:4, flags:0x00, stream_id:3) |
http2/5.3.1/1 Sends HEADERS frame that depends on itself | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | DATA Frame (length:7, flags:0x01, stream_id:1) |
http2/5.3.1/2 Sends PRIORITY frame that depend on itself | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closed | Timeout |
http2/6.1/2 Sends a DATA frame on the stream that is not in "open" or "half-closed (local)" state | GOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closed | HEADERS Frame (length:19, flags:0x05, stream_id:1) |
http2/6.3/1 Sends a PRIORITY frame with 0x0 stream identifier | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closed | Timeout |
http2/6.3/2 Sends a PRIORITY frame with a length other than 5 octets | GOAWAY Frame (Error Code: FRAME_SIZE_ERROR) or RST_STREAM Frame (Error Code: FRAME_SIZE_ERROR) or Connection closed | DATA Frame (length:7, flags:0x01, stream_id:1) |
http2/6.4/2 Sends a RST_STREAM frame on a idle stream | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closed | Timeout |
http2/6.9.1/3 Sends multiple WINDOW_UPDATE frames increasing the flow control window to above 2^31-1 on a stream | RST_STREAM Frame (Error Code: FLOW_CONTROL_ERROR) | Connection closed |
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:7, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | HEADERS Frame (length:5, flags:0x05, 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 | Timeout |
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 | HEADERS Frame (length:6, flags:0x04, stream_id:1) |
Every result
Alpha Round, 9 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 |
|---|---|---|---|---|---|---|---|
| HTTP/2 | Baseline | 256 | 15,188,548 | 1.10ms | 2.63ms | 5123.3% | 547MiB |
| HTTP/2 | Baseline | 1,024 | 15,174,023 | 3.64ms | 11.63ms | 5002.2% | 566MiB |
| HTTP/2 | Static | 256 | 1,380,022 | 5.58ms | 8.24ms | 6457.5% | 778MiB |
| HTTP/2 | Static | 1,024 | 1,366,261 | 22.67ms | 38.35ms | 6425.3% | 802MiB |
| HTTP/2 | Baseline (h2c) | 256 | 15,632,027 | 1.02ms | 2.17ms | 4769.6% | 526MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 15,535,742 | 3.53ms | 9.46ms | 4856.8% | 551MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 15,003,654 | 14.70ms | 41.81ms | 4880.0% | 659MiB |
| HTTP/2 | JSON (h2c) | 1,024 | 3,530,292 | 8.85ms | 9.93ms | 6447.4% | 606MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 3,383,749 | 36.74ms | 192.18ms | 6171.2% | 673MiB |
Compared with
The Rust HTTP engines around roxygen on the HTTP/2 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 roxygen | |
|---|---|---|---|
| hyper | 617 | -77% | head to head |
Compare roxygen with any Rust entry · Compare roxygen with any entry, in any language · Every Rust entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry