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
🥇 22 Gold · 🥈 3 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 |
|---|---|---|---|
| 🥇 Gold | Family composite | Composite · Database | 1 of 17 |
| 🥇 Gold | Family composite | Composite · HTTP/1.1 | 1 of 87 |
| 🥇 Gold | Family composite | Composite · HTTP/2 | 1 of 33 |
| 🥇 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 | Concurrency · Async Delay | 1 of 83 |
| 🥇 Gold | Test profile | Concurrency · CON-1M-TLS | 1 of 8 |
| 🥇 Gold | Test profile | Connection · Baseline | 1 of 87 |
| 🥇 Gold | Test profile | Connection · Short-lived | 1 of 87 |
| 🥇 Gold | Test profile | Database · Async DB | 1 of 17 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline | 1 of 31 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline (h2c) | 1 of 26 |
| 🥇 Gold | Test profile | HTTP/2 · JSON (h2c) | 1 of 28 |
| 🥇 Gold | Test profile | WebSocket · Echo | 1 of 31 |
| 🥇 Gold | Test profile | WebSocket · Echo Pipelined | 1 of 28 |
| 🥇 Gold | Test profile | Workload · JSON TLS | 1 of 84 |
| 🥇 Gold | Test profile | gRPC · Unary | 1 of 10 |
| 🥇 Gold | Test profile | gRPC · Unary TLS | 1 of 10 |
| 🥈 Silver | Test profile | Database · Fortunes | 2 of 9 |
| 🥈 Silver | Test profile | HTTP/2 · Static | 2 of 29 |
| 🥈 Silver | Test profile | WebSocket · Echo Short-lived | 2 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 87 | 6384 |
| HTTP/2 | 1 of 33 | 3985 |
| gRPC | 1 of 10 | 2000 |
| WebSocket | 1 of 31 | 2876 |
| Database | 1 of 17 | 1819 |
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 | 159 of 159 (100%) | 0 |
| 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 |
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,520,073 | 1.16ms | 1.78ms | 6369.3% | 362MiB |
| Connection | Pipelined | 4,096 | 22,999,280 | 2.85ms | 3.65ms | 6617.6% | 354MiB |
| Connection | Short-lived | 4,096 | 2,708,642 | 1.44ms | 3.08ms | 6380.0% | 430MiB |
| Concurrency | Async Delay | 32,000 | 2,545,881 | 12.57ms | 16.20ms | 5953.3% | 924MiB |
| Concurrency | CON-1M | 1,000,000 | 250,000 | 76.3us | 133.0us | 894.1% | 9.8GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,969 | 71.0us | 108.0us | 1482.4% | 35.5GiB |
| Efficiency | Latency-10K | 1,024 | 9,980 | 79.6us | 115.0us | 31.6% | 320MiB |
| Efficiency | Latency-1M | 1,024 | 997,697 | 99.5us | 173.0us | 2641.9% | 327MiB |
| Workload | JSON Comp | 4,096 | 829,108 | 4.94ms | 11.70ms | 6725.3% | 482MiB |
| Workload | JSON Comp | 16,384 | 806,339 | 20.32ms | 28.90ms | 6746.0% | 787MiB |
| Workload | JSON TLS | 4,096 | 1,747,244 | 2.22ms | 46.92ms | 6431.6% | 512MiB |
| Workload | 8Gbit | 512 | 49,362 | 97.5us | 130.0us | 247.7% | 340MiB |
| Workload | Static TLS | 1,024 | 848,425 | 1.14ms | 22.05ms | 6478.9% | 520MiB |
| Database | Async DB | 1,024 | 331,413 | 3.08ms | 20.40ms | 3118.2% | 263MiB |
| Database | Fortunes | 1,024 | 197,106 | 5.20ms | 7.18ms | 3331.1% | 279MiB |
| HTTP/2 | Baseline | 256 | 13,126,580 | 1.08ms | 2.33ms | 3640.8% | 326MiB |
| HTTP/2 | Baseline | 1,024 | 13,125,612 | 3.82ms | 7.32ms | 3658.5% | 350MiB |
| HTTP/2 | Static | 256 | 925,157 | 9.31ms | 21.38ms | 6429.4% | 498MiB |
| HTTP/2 | Static | 1,024 | 930,337 | 34.35ms | 63.39ms | 6526.5% | 618MiB |
| HTTP/2 | Baseline (h2c) | 256 | 13,409,423 | 1.06ms | 2.49ms | 3545.2% | 313MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 13,198,260 | 3.70ms | 6.13ms | 3481.6% | 326MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 12,606,535 | 15.50ms | 25.90ms | 3519.7% | 442MiB |
| HTTP/2 | JSON (h2c) | 1,024 | 3,632,730 | 8.67ms | 16.86ms | 6598.3% | 525MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 3,322,795 | 38.27ms | 59.56ms | 6536.1% | 1.1GiB |
| gRPC | Unary | 256 | 7,055,000 | 2.11ms | 5.07ms | 1691.0% | 337MiB |
| gRPC | Unary | 1,024 | 7,028,534 | 7.48ms | 15.00ms | 1781.9% | 426MiB |
| gRPC | Unary TLS | 256 | 6,959,521 | 2.14ms | 3.11ms | 1765.6% | 376MiB |
| gRPC | Unary TLS | 1,024 | 6,880,573 | 7.64ms | 10.86ms | 1888.7% | 439MiB |
| WebSocket | Echo | 512 | 4,139,195 | 123us | 229us | 6440.0% | 310MiB |
| WebSocket | Echo | 4,096 | 4,297,321 | 953us | 1.21ms | 6079.3% | 358MiB |
| WebSocket | Echo | 16,384 | 3,959,390 | 4.14ms | 4.68ms | 5884.9% | 728MiB |
| WebSocket | Echo Pipelined | 512 | 60,969,315 | 133us | 276us | 6346.9% | 308MiB |
| WebSocket | Echo Pipelined | 4,096 | 62,773,545 | 1.04ms | 1.41ms | 6449.1% | 371MiB |
| WebSocket | Echo Pipelined | 16,384 | 57,073,632 | 4.59ms | 5.56ms | 5962.2% | 727MiB |
| WebSocket | Echo Short-lived | 512 | 2,325,645 | 182us | 535us | 5909.8% | 327MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,516,785 | 1.36ms | 2.13ms | 5883.4% | 426MiB |
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 | 6345 | -1% | head to head |
| cpeak | 6152 | -4% | 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