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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Family composite | Composite · Database | 1 of 8 |
| 🥇 Gold | Family composite | Composite · HTTP/1.1 | 1 of 88 |
| 🥇 Gold | Family composite | Composite · HTTP/2 | 1 of 34 |
| 🥇 Gold | Family composite | Composite · WebSocket | 1 of 31 |
| 🥇 Gold | Family composite | Composite · gRPC | 1 of 10 |
| 🥇 Gold | Within its language | Rust · HTTP/1.1 | 1 of 9 |
| 🥇 Gold | Within its language | Rust · HTTP/2 | 1 of 7 |
| 🥇 Gold | Within its language | Rust · WebSocket | 1 of 7 |
| 🥇 Gold | Within its language | Rust · gRPC | 1 of 4 |
| 🥇 Gold | Test profile | Database · Async DB | 1 of 8 |
| 🥇 Gold | Test profile | Efficiency · Latency-10K | 1 of 88 |
| 🥇 Gold | Test profile | HTTP/2 · JSON (h2c) | 1 of 29 |
| 🥇 Gold | Test profile | HTTP/2 · Static | 1 of 30 |
| 🥇 Gold | Test profile | WebSocket · Echo Pipelined | 1 of 28 |
| 🥇 Gold | Test profile | Workload · JSON TLS | 1 of 85 |
| 🥇 Gold | Test profile | gRPC · Unary | 1 of 10 |
| 🥇 Gold | Test profile | gRPC · Unary TLS | 1 of 10 |
| 🥈 Silver | Test profile | Connection · Baseline | 2 of 88 |
| 🥈 Silver | Test profile | Connection · Short-lived | 2 of 88 |
| 🥈 Silver | Test profile | Database · Fortunes | 2 of 6 |
| 🥈 Silver | Test profile | HTTP/2 · Baseline | 2 of 32 |
| 🥈 Silver | Test profile | HTTP/2 · Baseline (h2c) | 2 of 27 |
| 🥉 Bronze | Test profile | WebSocket · Echo Short-lived | 3 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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 1 of 88 | 6209 |
| HTTP/2 | 1 of 34 | 3933 |
| gRPC | 1 of 10 | 2000 |
| WebSocket | 1 of 31 | 2740 |
| Database | 1 of 8 | 1842 |
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 (ntex-h2) | h2spec 2.6.0 | 146 of 146 (100%) | 0 |
| WebSocket (ntex-ws) | autobahn-testsuite 25.10.1 | 244 of 244 (100%) | 0 |
HTTP/1.1: what failed
| Test | Expected | Got |
|---|---|---|
COMP-HOST-WITH-USERINFO Host header with userinfo (user@host) must be rejected (RFC 9112 §3.2, MUST) | 400 or close | 200, connection left open |
COMP-HOST-WITH-PATH Host header with path component must be rejected (RFC 9112 §3.2, MUST) | 400 or close | 200, 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 = warn | 404, connection left open |
COMP-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD) | 400/405/501 or close | 404, connection closed |
SMUG-MULTIPLE-HOST-COMMA Host header with comma-separated values must be rejected (RFC 9110 §7.2, MUST) | 400 or close | 200, 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.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 3,396,907 | 1.21ms | 1.85ms | 6382.7% | 364MiB |
| Connection | Pipelined | 4,096 | 23,155,552 | 2.83ms | 3.75ms | 6616.1% | 356MiB |
| Connection | Short-lived | 4,096 | 2,650,693 | 1.51ms | 3.32ms | 6096.2% | 432MiB |
| Concurrency | Async Delay | 32,000 | 2,262,581 | 14.14ms | 18.40ms | 5629.0% | 993MiB |
| Concurrency | CON-1M | 1,000,000 | 250,000 | 77.9us | 138.0us | 910.1% | 9.7GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,957 | 72.0us | 111.0us | 1484.5% | 35.5GiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 79.2us | 118.0us | 33.3% | 322MiB |
| Efficiency | Latency-1M | 1,024 | 997,811 | 104.5us | 177.0us | 2881.3% | 326MiB |
| Workload | JSON Comp | 4,096 | 820,143 | 5.01ms | 11.80ms | 6387.2% | 468MiB |
| Workload | JSON Comp | 16,384 | 798,075 | 20.58ms | 29.10ms | 6288.1% | 761MiB |
| Workload | JSON TLS | 4,096 | 1,702,941 | 2.30ms | 35.13ms | 6281.0% | 514MiB |
| Workload | 8Gbit | 512 | 49,352 | 95.5us | 126.0us | 236.2% | 335MiB |
| Workload | Static TLS | 1,024 | 845,477 | 1.15ms | 17.40ms | 6558.0% | 512MiB |
| Database | Async DB | 1,024 | 327,285 | 3.12ms | 17.70ms | 3146.7% | 254MiB |
| Database | Fortunes | 1,024 | 204,710 | 5.00ms | 7.71ms | 3344.7% | 289MiB |
| HTTP/2 | Baseline | 256 | 12,798,174 | 1.15ms | 2.56ms | 3962.1% | 323MiB |
| HTTP/2 | Baseline | 1,024 | 12,415,217 | 4.33ms | 9.08ms | 4301.6% | 351MiB |
| HTTP/2 | Static | 256 | 932,707 | 9.21ms | 21.65ms | 6622.4% | 494MiB |
| HTTP/2 | Static | 1,024 | 933,580 | 34.48ms | 62.07ms | 6649.9% | 599MiB |
| HTTP/2 | Baseline (h2c) | 256 | 13,173,789 | 1.14ms | 2.55ms | 4021.0% | 307MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 12,924,792 | 3.95ms | 7.24ms | 3920.8% | 326MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 12,418,509 | 16.61ms | 29.71ms | 3787.5% | 394MiB |
| HTTP/2 | JSON (h2c) | 1,024 | 3,465,923 | 9.05ms | 17.89ms | 6481.3% | 535MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 3,182,382 | 39.88ms | 63.36ms | 6337.2% | 1.1GiB |
| gRPC | Unary | 256 | 6,966,607 | 2.17ms | 5.21ms | 1795.1% | 385MiB |
| gRPC | Unary | 1,024 | 6,992,971 | 7.71ms | 18.37ms | 1912.5% | 450MiB |
| gRPC | Unary TLS | 256 | 6,875,467 | 2.17ms | 2.86ms | 1875.0% | 351MiB |
| gRPC | Unary TLS | 1,024 | 6,781,581 | 7.69ms | 11.05ms | 1973.9% | 450MiB |
| WebSocket | Echo | 512 | 3,932,723 | 129us | 310us | 6307.8% | 309MiB |
| WebSocket | Echo | 4,096 | 4,055,738 | 1.01ms | 1.40ms | 6133.5% | 361MiB |
| WebSocket | Echo | 16,384 | 3,705,983 | 4.42ms | 5.42ms | 6021.2% | 711MiB |
| WebSocket | Echo Pipelined | 512 | 56,087,894 | 145us | 315us | 6356.5% | 308MiB |
| WebSocket | Echo Pipelined | 4,096 | 58,501,267 | 1.12ms | 1.66ms | 6231.9% | 367MiB |
| WebSocket | Echo Pipelined | 16,384 | 53,883,670 | 4.87ms | 6.57ms | 6016.9% | 712MiB |
| WebSocket | Echo Short-lived | 512 | 2,259,611 | 188us | 557us | 5822.8% | 320MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,496,058 | 1.38ms | 2.42ms | 5945.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.
| Entry | Composite | vs ntex | |
|---|---|---|---|
| Proa | 6383 | +3% | head to head |
| actix | 5307 | -15% | head to head |
| cpeak | 5218 | -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