HttpArena
Frameworks

actix

Flagship · Rust · standard configuration · completeness 4/4

Actix-web 4 with rustls for TLS and mimalloc as the allocator. Default worker count, TCP_NODELAY enabled. actix-files serves static content from disk per request via try_compressed(), which selects a pre-compressed .br/.gz sibling by Accept-Encoding through the framework API (no hand-rolled suffix lookup). JSON is serialized per request with serde_json; on json-comp gzip (level 1) is driven in the handler, because actix-web's encoder sends every body over 1 KiB through the blocking pool, and the Compress middleware on that route serves any other encoding. async-db through a deadpool-postgres pool per worker (DATABASE_MAX_CONN split between the workers). fortunes rendered through an Askama template. json-tls and static-tls are served over HTTP/1.1-with-TLS on :8081; baseline-h2/static-h2 over h2 on :8443. Compiled with -O3 and thin LTO.

Achievements

🥇 3 Gold · 🥈 1 Silver · 🥉 3 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 profileEfficiency · Latency-10K1 of 85
🥇 GoldTest profileEfficiency · Latency-1M1 of 85
🥇 GoldTest profileWorkload · JSON TLS1 of 82
🥈 SilverWithin its languageRust · HTTP/22 of 7
🥉 BronzeWithin its languageRust · HTTP/1.13 of 9
🥉 BronzeWithin its languageRust · WebSocket3 of 7
🥉 BronzeTest profileWebSocket · Echo Pipelined3 of 27

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/1.16 of 856322
HTTP/27 of 312188
WebSocket9 of 302234

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 d50d818120 of 159 (75.5%)39 - the server crashed during the suite
HTTP/2 (actix-h2c)h2spec 2.6.0144 of 145 (99.3%)1
WebSocket (actix-websocket)autobahn-testsuite 25.10.1105 of 244 (43.0%)139

HTTP/1.1: what failed

TestExpectedGot
COMP-HOST-WITH-USERINFO Host header with userinfo (user@host) must be rejected (RFC 9112 §3.2, MUST)400 or close200, connection left open
COMP-HOST-WITH-PATH Host header with path component must be rejected (RFC 9112 §3.2, 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 = warn404, connection left open
COMP-OPTIONS-STAR OPTIONS * is the only valid asterisk-form request (RFC 9112 §3.2.4, MUST)2xx or 405; close/timeout = warn404, connection left open
COMP-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD)400/405/501 or close404, connection closed
COMP-HOST-EMPTY-VALUE Empty Host header value must be rejected (RFC 9112 §3.2, MUST)400 or close200, connection left open
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-SIZE-TRAILING-OWS Chunk size with trailing whitespace before CRLF must be rejected (RFC 9112 §7.1, MUST)400 or close200, connection left open
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-MULTIPLE-HOST-COMMA Host header with comma-separated values must be rejected (RFC 9110 §7.2, MUST)400 or close200, connection left open
MAL-LONG-HEADER-VALUE 100KB header value should be rejected with 431 (SHOULD)400/431 or close200, connection left open
MAL-INCOMPLETE-REQUEST Partial HTTP request — request-line and headers but no final CRLF (NOTAPPLICABLE)400/close/timeout408, timed out
MAL-EMPTY-REQUEST Zero bytes — TCP connection established without sending any data (NOTAPPLICABLE)400/close/timeout408, timed out
MAL-LONG-METHOD 100KB method name should be rejected (SHOULD)400, 501 or closeno response, connection error (Failed to connect: Error)
MAL-NON-ASCII-HEADER-NAME Non-ASCII bytes (UTF-8 ë) in header name must be rejected (MUST)400 or closeno response, connection error (Failed to connect: Error)
MAL-NON-ASCII-URL Non-ASCII bytes (UTF-8 é) in URL must be rejected (MUST)400 or closeno response, connection error (Failed to connect: Error)
MAL-CL-OVERFLOW Content-Length with integer overflow value must be rejected (MUST)400 or closeno response, connection error (Failed to connect: Error)
MAL-WHITESPACE-ONLY-LINE Whitespace-only request line should be rejected or timeout (NOTAPPLICABLE)400/close/timeoutno response, connection error (Failed to connect: Error)
MAL-NUL-IN-HEADER-VALUE NUL byte in header value should be rejected (MUST)400 or closeno response, connection error (Failed to connect: Error)
MAL-CHUNK-SIZE-OVERFLOW Chunk size with integer overflow must be rejected (MUST)400 or closeno response, connection error (Failed to connect: Error)
MAL-H2-PREFACE HTTP/2 connection preface sent to HTTP/1.1 server must be rejected (NOTAPPLICABLE)400/505/close/timeoutno response, connection error (Failed to connect: Error)
MAL-CL-EMPTY Empty Content-Length value must be rejected (RFC 9110 §8.6, MUST)400 or closeno response, connection error (Failed to connect: Error)
MAL-CL-TAB-BEFORE-VALUE Content-Length with tab as OWS — valid per RFC but unusual (RFC 9110 §5.5, MAY)400 or 2xxno response, connection error (Failed to connect: Error)
MAL-URL-BACKSLASH Backslash in URL path — not valid URI character, some servers normalize to / (SHOULD)400 or 2xx/404no response, connection error (Failed to connect: Error)
MAL-URL-OVERLONG-UTF8 Overlong UTF-8 encoding of / (0xC0 0xAF) in URL must be rejected (MUST)400 or closeno response, connection error (Failed to connect: Error)
MAL-URL-PERCENT-NULL Percent-encoded NUL byte (%00) in URL — security risk from null byte injection (NOTAPPLICABLE)400 or 2xx/404no response, connection error (Failed to connect: Error)
MAL-URL-PERCENT-CRLF Percent-encoded CRLF (%0d%0a) in URL — header injection if server decodes during parsing (NOTAPPLICABLE)400 or 2xx/404no response, connection error (Failed to connect: Error)
MAL-CHUNK-EXT-64K 64KB chunk extension — tests extension length limits (CVE-2023-39326 class) (NOTAPPLICABLE)400 or 2xxno response, connection error (Failed to connect: Error)
MAL-POST-CL-HUGE-NO-BODY POST with Content-Length: 999999999 but no body — tests timeout vs memory allocation (MUST)400/413/close/timeoutno response, connection error (Failed to connect: Error)
NORM-UNDERSCORE-CL Underscore in Content-Length name — checks if server normalizes Content_Length to Content-Length (NOTAPPLICABLE)Reject/drop (pass), normalize (fail), preserve (warn)no response, connection error (Failed to connect: Error)
NORM-SP-BEFORE-COLON-CL Space before colon in Content-Length — checks if server strips whitespace before colon (RFC 9112 §5, MUST)Reject/drop (pass), normalize (fail), preserve (warn)no response, connection error (Failed to connect: Error)
NORM-TAB-IN-NAME Tab character in header name — checks if server normalizes Content\tLength to Content-Length (MUST)Reject/drop (pass), normalize (fail), preserve (warn)no response, connection error (Failed to connect: Error)
NORM-UNDERSCORE-TE Underscore in Transfer-Encoding name — checks if server normalizes Transfer_Encoding to Transfer-Encoding (NOTAPPLICABLE)Reject/drop (pass), normalize (fail), preserve (warn)no response, connection error (Failed to connect: Error)
WS-UPGRADE-POST WebSocket upgrade via POST must not be accepted (RFC 6455 §4.1, MUST)!101no response, connection error (Failed to connect: Error)
WS-UPGRADE-MISSING-CONN Upgrade header without Connection: Upgrade must not trigger protocol switch (RFC 9110 §7.8, MUST)!101no response, connection error (Failed to connect: Error)
WS-UPGRADE-UNKNOWN Upgrade to unknown protocol must not return 101 (RFC 9110 §7.8, MUST)!101no response, connection error (Failed to connect: Error)
WS-UPGRADE-INVALID-VER WebSocket upgrade with unsupported version — should return 426 (RFC 6455 §4.4, MUST)non-101 (426 preferred)no response, connection error (Failed to connect: Error)
WS-UPGRADE-HTTP10 Upgrade header in HTTP/1.0 request must be ignored (RFC 9110 §7.8, MUST)!101no response, connection error (Failed to connect: Error)

HTTP/2: what failed

TestExpectedGot
http2/3.5/2 Sends invalid connection prefaceGOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closedError: unexpected EOF

WebSocket: what failed

TestExpectedGot
3.1 Send small text message with <b>RSV = 1</b>.The connection is failed immediately (1002/protocol error), since RSV must be 0, when no extension defining RSV meaning has been negotiated.Actual events match at least one expected. / close: The close code should have been 1002 or empty
3.2 Send small text message, then send again with <b>RSV = 2</b>, then send Ping.Echo for first message is received, but then connection is failed immediately, since RSV must be 0, when no extension defining RSV meaning has been negotiated. The Pong is not received.Actual events match at least one expected. / close: The close code should have been 1002 or empty
3.3 Send small text message, then send again with <b>RSV = 3</b>, then send Ping. Octets are sent in frame-wise chops. Octets are sent in octet-wise chops.Echo for first message is received, but then connection is failed immediately, since RSV must be 0, when no extension defining RSV meaning has been negotiated. The Pong is not received.Actual events match at least one expected. / close: The close code should have been 1002 or empty
3.4 Send small text message, then send again with <b>RSV = 4</b>, then send Ping. Octets are sent in octet-wise chops.Echo for first message is received, but then connection is failed immediately, since RSV must be 0, when no extension defining RSV meaning has been negotiated. The Pong is not received.Actual events match at least one expected. / close: The close code should have been 1002 or empty
3.5 Send small binary message with <b>RSV = 5</b>.The connection is failed immediately, since RSV must be 0.Actual events match at least one expected. / close: The close code should have been 1002 or empty
3.6 Send Ping with <b>RSV = 6</b>.The connection is failed immediately, since RSV must be 0.Actual events match at least one expected. / close: The close code should have been 1002 or empty
3.7 Send Close with <b>RSV = 7</b>.The connection is failed immediately, since RSV must be 0.Actual events match at least one expected. / close: The close code should have been 1002 or empty
6.5.1 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0x68656c6c6f24776f726c64The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.5.2 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0x68656c6c6fc2a2776f726c64The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.5.3 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0x68656c6c6fe282ac776f726c64The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.5.4 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0x68656c6c6ff0a4ada2776f726c64The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.5.5 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cf83cebcceb5The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xceThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.2 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xcebaThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.5 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.7 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cf83The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.8 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cf83ceThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.9 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cf83cebcThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.10 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cf83cebcceThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.6.11 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xcebae1bdb9cf83cebcceb5The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.7.1 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0x00The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.7.2 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xc280The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.7.3 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xe0a080The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.7.4 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf0908080The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.8.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf888808080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.8.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc8480808080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.9.1 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0x7fThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.9.2 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xdfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.9.3 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.9.4 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf48fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.10.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf7bfbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.10.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfbbfbfbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.10.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfdbfbfbfbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.11.1 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xed9fbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.11.2 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xee8080The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.11.3 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbdThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.11.4 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf48fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.11.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf4908080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.12.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.12.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.12.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.12.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bf80The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.12.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bf80bfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.12.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bf80bf80The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.12.7 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x80bf80bf80bfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.12.8 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0x808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f...The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.13.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc020c120c220c320c420c520c620c720c820c920ca20cb20cc20cd20ce20cf20...The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.13.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe020e120e220e320e420e520e620e720e820e920ea20eb20ec20ed20ee20The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.13.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf020f120f220f320f420f520f620The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.13.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf820f920fa20The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.13.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc20The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc0The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf08080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf8808080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc80808080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xdfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.7 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xefbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.8 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf7bfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.9 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfbbfbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.14.10 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfdbfbfbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.15.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc0e080f08080f8808080fc80808080dfefbff7bfbffbbfbfbffdbfbfbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.16.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfeThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.16.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xffThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.16.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfefeffffThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.17.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc0afThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.17.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe080afThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.17.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf08080afThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.17.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf8808080afThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.17.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc80808080afThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.18.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc1bfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.18.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe09fbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.18.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf08fbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.18.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf887bfbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.18.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc83bfbfbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.19.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xc080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.19.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xe08080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.19.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf0808080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.19.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xf880808080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.19.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xfc8080808080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.20.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xeda080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.20.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedadbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.20.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedae80The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.20.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedafbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.20.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedb080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.20.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedbe80The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.20.7 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.21.1 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xeda080edb080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.21.2 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xeda080edbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.21.3 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedadbfedb080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.21.4 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedadbfedbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.21.5 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedae80edb080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.21.6 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedae80edbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.21.7 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedafbfedb080The connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.21.8 Send a text message with payload which is not valid UTF-8 in one fragment.<br><br>Payload: 0xedafbfedbfbfThe connection is failed immediately, since the payload is not valid UTF-8.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.1 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.2 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.3 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf09fbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.4 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf09fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.5 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf0afbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.6 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf0afbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.7 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf0bfbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.8 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf0bfbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.9 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf18fbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.10 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf18fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.11 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf19fbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.12 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf19fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.13 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf1afbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.14 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf1afbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.15 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf1bfbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.16 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf1bfbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.17 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf28fbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.18 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf28fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.19 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf29fbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.20 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf29fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.21 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf2afbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.22 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf2afbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.23 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf2bfbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.24 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf2bfbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.25 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf38fbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.26 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf38fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.27 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf39fbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.28 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf39fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.29 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf3afbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.30 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf3afbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.31 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf3bfbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.32 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf3bfbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.33 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf48fbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.22.34 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xf48fbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.23.1 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfb9The message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.23.2 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbaThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.23.3 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbbThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.23.4 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbcThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.23.5 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbdThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.23.6 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbeThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection
6.23.7 Send a text message with payload which is valid UTF-8 in one fragment.<br><br>Payload: 0xefbfbfThe message is echo'ed back to us.Actual events match at least one expected. / close: It is preferred that the server close the TCP connection

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0962,955,9021.20ms2.39ms6311.4%371MiB
ConnectionPipelined4,09618,907,7883.08ms3.55ms6756.4%428MiB
ConnectionShort-lived4,0961,139,2621.15ms9.27ms4400.5%278MiB
ConcurrencyAsync Delay32,0001,998,95814.42ms17.00ms4807.0%1.3GiB
EfficiencyLatency-10K1,0249,98369.5us105.0us25.4%360MiB
EfficiencyLatency-1M1,024998,533100.9us185.0us2731.9%294MiB
EfficiencyLatency-500K/81,024445,0891075424.1us2126848.0us793.9%83MiB
WorkloadJSON Comp4,096613,6305.84ms24.60ms6341.9%609MiB
WorkloadJSON Comp16,384594,19817.56ms35.10ms6562.2%910MiB
WorkloadJSON TLS4,0961,401,7772.87ms58.23ms6274.9%429MiB
Workload8Gbit51249,39294.8us125.0us218.8%336MiB
WorkloadStatic TLS1,024414,5702.51ms31.64ms6303.9%2.6GiB
DatabaseAsync DB1,024320,2312.73ms19.30ms3602.7%418MiB
DatabaseFortunes1,024267,3282.31ms7.00ms5072.5%430MiB
HTTP/2Baseline2566,427,5193.82ms25.31ms6262.7%513MiB
HTTP/2Baseline1,0244,836,17319.84ms87.47ms6233.4%829MiB
HTTP/2Static256419,80119.31ms61.96ms6239.4%2.3GiB
HTTP/2Static1,024404,44577.57ms228.28ms6246.2%2.8GiB
HTTP/2Baseline (h2c)2566,671,5903.67ms16.15ms6418.6%578MiB
HTTP/2Baseline (h2c)1,0244,961,42220.15ms77.59ms6340.3%829MiB
HTTP/2Baseline (h2c)4,0964,500,68783.98ms210.21ms6176.9%2.6GiB
HTTP/2JSON (h2c)1,0241,764,96517.79ms48.72ms6566.7%584MiB
HTTP/2JSON (h2c)4,0961,616,16369.10ms320.17ms6244.4%1.3GiB
WebSocketEcho5123,646,407139us249us6495.2%179MiB
WebSocketEcho4,0963,660,925957us1.78ms6188.0%275MiB
WebSocketEcho16,3843,473,3631.94ms6.13ms5920.3%449MiB
WebSocketEcho Pipelined51247,190,006172us278us6715.6%184MiB
WebSocketEcho Pipelined4,09646,405,8841.19ms4.05ms6235.8%283MiB
WebSocketEcho Pipelined16,38444,938,6721.73ms4.65ms6151.7%341MiB
WebSocketEcho Short-lived5121,170,84564us177us4419.1%173MiB
WebSocketEcho Short-lived4,0961,145,17768us214us4314.1%178MiB

Compared with

The Rust web frameworks around actix 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 actix with any Rust entry · Compare actix with any entry, in any language · Every Rust entry, ranked

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