HttpArena

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.

MedalAwardFieldRank
🥈 SilverTest profileHTTP/2 · Baseline2 of 17
🥈 SilverTest profileHTTP/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.

FamilyRankComposite
HTTP/24 of 182728

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/2h2spec 2.6.0114 of 146 (78.1%)32

HTTP/2: what failed

TestExpectedGot
http2/5.1/1 idle: Sends a DATA frameGOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closedTimeout
http2/5.1/2 idle: Sends a RST_STREAM frameGOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closedTimeout
http2/5.1/3 idle: Sends a WINDOW_UPDATE frameGOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closedTimeout
http2/5.1/5 half closed (remote): Sends a DATA frameGOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closedHEADERS Frame (length:10, flags:0x04, stream_id:1)
http2/5.1/6 half closed (remote): Sends a HEADERS frameGOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closedDATA Frame (length:7, flags:0x01, stream_id:1)
http2/5.1/8 closed: Sends a DATA frame after sending RST_STREAM frameGOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closedTimeout
http2/5.1/9 closed: Sends a HEADERS frame after sending RST_STREAM frameGOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closedTimeout
http2/5.1/11 closed: Sends a DATA frameGOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closedTimeout
http2/5.1/12 closed: Sends a HEADERS frameGOAWAY Frame (Error Code: STREAM_CLOSED) or Connection closedRST_STREAM Frame (length:4, flags:0x00, stream_id:1)
http2/5.1.1/2 Sends stream identifier that is numerically smaller than previousGOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closedRST_STREAM Frame (length:4, flags:0x00, stream_id:3)
http2/5.3.1/1 Sends HEADERS frame that depends on itselfGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:7, flags:0x01, stream_id:1)
http2/5.3.1/2 Sends PRIORITY frame that depend on itselfGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedTimeout
http2/6.1/2 Sends a DATA frame on the stream that is not in "open" or "half-closed (local)" stateGOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closedHEADERS Frame (length:19, flags:0x05, stream_id:1)
http2/6.3/1 Sends a PRIORITY frame with 0x0 stream identifierGOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closedTimeout
http2/6.3/2 Sends a PRIORITY frame with a length other than 5 octetsGOAWAY Frame (Error Code: FRAME_SIZE_ERROR) or RST_STREAM Frame (Error Code: FRAME_SIZE_ERROR) or Connection closedDATA Frame (length:7, flags:0x01, stream_id:1)
http2/6.4/2 Sends a RST_STREAM frame on a idle streamGOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closedTimeout
http2/6.9.1/3 Sends multiple WINDOW_UPDATE frames increasing the flow control window to above 2^31-1 on a streamRST_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 lettersGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedDATA Frame (length:7, 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 closedHEADERS 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 responseGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedHEADERS 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 fieldGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedHEADERS Frame (length:5, flags:0x05, 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 closedHEADERS 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 closedHEADERS Frame (length:5, flags:0x05, 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 closedHEADERS Frame (length:5, flags:0x05, 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 closedHEADERS Frame (length:5, flags:0x05, 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 closedHEADERS Frame (length:5, flags:0x05, 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 closedHEADERS Frame (length:5, flags:0x05, 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 closedHEADERS Frame (length:5, flags:0x05, 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 closedHEADERS Frame (length:5, flags:0x05, 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 closedHEADERS 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 lengthGOAWAY Frame (Error Code: PROTOCOL_ERROR) or RST_STREAM Frame (Error Code: PROTOCOL_ERROR) or Connection closedTimeout
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 closedHEADERS 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.

CategoryProfileConnsReq/secAvgp99CPUMemory
HTTP/2Baseline25615,188,5481.10ms2.63ms5123.3%547MiB
HTTP/2Baseline1,02415,174,0233.64ms11.63ms5002.2%566MiB
HTTP/2Static2561,380,0225.58ms8.24ms6457.5%778MiB
HTTP/2Static1,0241,366,26122.67ms38.35ms6425.3%802MiB
HTTP/2Baseline (h2c)25615,632,0271.02ms2.17ms4769.6%526MiB
HTTP/2Baseline (h2c)1,02415,535,7423.53ms9.46ms4856.8%551MiB
HTTP/2Baseline (h2c)4,09615,003,65414.70ms41.81ms4880.0%659MiB
HTTP/2JSON (h2c)1,0243,530,2928.85ms9.93ms6447.4%606MiB
HTTP/2JSON (h2c)4,0963,383,74936.74ms192.18ms6171.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.

EntryCompositevs roxygen
hyper617-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