HttpArena

ntex

Flagship · Rust · standard configuration · completeness 4/4

ntex 4 on its native runtime. Routing and extractors through ntex::web, JSON through HttpResponse::json. Static files served from disk per request, choosing a pre-compressed .br/.gz sibling off Accept-Encoding. async-db with deadpool's unmanaged pool (sized from DATABASE_MAX_CONN). fortunes rendered through a sailfish template. json-tls and static-tls over HTTP/1.1 with rustls on 8081.

Achievements

🥇 17 Gold · 🥈 5 Silver · 🥉 1 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
🥇 GoldFamily compositeComposite · Database1 of 8
🥇 GoldFamily compositeComposite · HTTP/1.11 of 88
🥇 GoldFamily compositeComposite · HTTP/21 of 34
🥇 GoldFamily compositeComposite · WebSocket1 of 31
🥇 GoldFamily compositeComposite · gRPC1 of 10
🥇 GoldWithin its languageRust · HTTP/1.11 of 9
🥇 GoldWithin its languageRust · HTTP/21 of 7
🥇 GoldWithin its languageRust · WebSocket1 of 7
🥇 GoldWithin its languageRust · gRPC1 of 4
🥇 GoldTest profileDatabase · Async DB1 of 8
🥇 GoldTest profileEfficiency · Latency-10K1 of 88
🥇 GoldTest profileHTTP/2 · JSON (h2c)1 of 29
🥇 GoldTest profileHTTP/2 · Static1 of 30
🥇 GoldTest profileWebSocket · Echo Pipelined1 of 28
🥇 GoldTest profileWorkload · JSON TLS1 of 85
🥇 GoldTest profilegRPC · Unary1 of 10
🥇 GoldTest profilegRPC · Unary TLS1 of 10
🥈 SilverTest profileConnection · Baseline2 of 88
🥈 SilverTest profileConnection · Short-lived2 of 88
🥈 SilverTest profileDatabase · Fortunes2 of 6
🥈 SilverTest profileHTTP/2 · Baseline2 of 32
🥈 SilverTest profileHTTP/2 · Baseline (h2c)2 of 27
🥉 BronzeTest profileWebSocket · Echo Short-lived3 of 23

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.11 of 886209
HTTP/21 of 343933
gRPC1 of 102000
WebSocket1 of 312740
Database1 of 81842

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/2 (ntex-h2)h2spec 2.6.0146 of 146 (100%)0
WebSocket (ntex-ws)autobahn-testsuite 25.10.1244 of 244 (100%)0

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-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
SMUG-MULTIPLE-HOST-COMMA Host header with comma-separated values must be rejected (RFC 9110 §7.2, MUST)400 or close200, connection left open

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,396,9071.21ms1.85ms6382.7%364MiB
ConnectionPipelined4,09623,155,5522.83ms3.75ms6616.1%356MiB
ConnectionShort-lived4,0962,650,6931.51ms3.32ms6096.2%432MiB
ConcurrencyAsync Delay32,0002,262,58114.14ms18.40ms5629.0%993MiB
ConcurrencyCON-1M1,000,000250,00077.9us138.0us910.1%9.7GiB
ConcurrencyCON-1M-TLS1,000,000249,95772.0us111.0us1484.5%35.5GiB
EfficiencyLatency-10K1,0249,98379.2us118.0us33.3%322MiB
EfficiencyLatency-1M1,024997,811104.5us177.0us2881.3%326MiB
WorkloadJSON Comp4,096820,1435.01ms11.80ms6387.2%468MiB
WorkloadJSON Comp16,384798,07520.58ms29.10ms6288.1%761MiB
WorkloadJSON TLS4,0961,702,9412.30ms35.13ms6281.0%514MiB
Workload8Gbit51249,35295.5us126.0us236.2%335MiB
WorkloadStatic TLS1,024845,4771.15ms17.40ms6558.0%512MiB
DatabaseAsync DB1,024327,2853.12ms17.70ms3146.7%254MiB
DatabaseFortunes1,024204,7105.00ms7.71ms3344.7%289MiB
HTTP/2Baseline25612,798,1741.15ms2.56ms3962.1%323MiB
HTTP/2Baseline1,02412,415,2174.33ms9.08ms4301.6%351MiB
HTTP/2Static256932,7079.21ms21.65ms6622.4%494MiB
HTTP/2Static1,024933,58034.48ms62.07ms6649.9%599MiB
HTTP/2Baseline (h2c)25613,173,7891.14ms2.55ms4021.0%307MiB
HTTP/2Baseline (h2c)1,02412,924,7923.95ms7.24ms3920.8%326MiB
HTTP/2Baseline (h2c)4,09612,418,50916.61ms29.71ms3787.5%394MiB
HTTP/2JSON (h2c)1,0243,465,9239.05ms17.89ms6481.3%535MiB
HTTP/2JSON (h2c)4,0963,182,38239.88ms63.36ms6337.2%1.1GiB
gRPCUnary2566,966,6072.17ms5.21ms1795.1%385MiB
gRPCUnary1,0246,992,9717.71ms18.37ms1912.5%450MiB
gRPCUnary TLS2566,875,4672.17ms2.86ms1875.0%351MiB
gRPCUnary TLS1,0246,781,5817.69ms11.05ms1973.9%450MiB
WebSocketEcho5123,932,723129us310us6307.8%309MiB
WebSocketEcho4,0964,055,7381.01ms1.40ms6133.5%361MiB
WebSocketEcho16,3843,705,9834.42ms5.42ms6021.2%711MiB
WebSocketEcho Pipelined51256,087,894145us315us6356.5%308MiB
WebSocketEcho Pipelined4,09658,501,2671.12ms1.66ms6231.9%367MiB
WebSocketEcho Pipelined16,38453,883,6704.87ms6.57ms6016.9%712MiB
WebSocketEcho Short-lived5122,259,611188us557us5822.8%320MiB
WebSocketEcho Short-lived4,0962,496,0581.38ms2.42ms5945.6%429MiB

Compared with

The Rust web frameworks around ntex 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.

EntryCompositevs ntex
Proa6383+3%head to head
actix5307-15%head to head
cpeak5218-16%head to head

Compare ntex with any Rust entry · Compare ntex with any entry, in any language · Every Rust entry, ranked

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