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 an Askama template. json-tls and static-tls over HTTP/1.1 with rustls on 8081.
Achievements
🥇 8 Gold · 🥈 5 Silver · 🥉 2 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 · 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 | HTTP/2 · JSON (h2c) | 1 of 26 |
| 🥇 Gold | Test profile | gRPC · Unary | 1 of 10 |
| 🥇 Gold | Test profile | gRPC · Unary TLS | 1 of 10 |
| 🥈 Silver | Family composite | Composite · WebSocket | 2 of 30 |
| 🥈 Silver | Test profile | HTTP/2 · Baseline | 2 of 31 |
| 🥈 Silver | Test profile | HTTP/2 · Baseline (h2c) | 2 of 26 |
| 🥈 Silver | Test profile | WebSocket · Echo Pipelined | 2 of 27 |
| 🥈 Silver | Test profile | Workload · JSON TLS | 2 of 82 |
| 🥉 Bronze | Family composite | Composite · HTTP/1.1 | 3 of 85 |
| 🥉 Bronze | Family composite | Composite · HTTP/2 | 3 of 31 |
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.
Every result
Alpha Round, 35 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,221,806 | 1.27ms | 1.91ms | 6383.8% | 442MiB |
| Connection | Pipelined | 4,096 | 21,239,616 | 3.08ms | 4.10ms | 6311.9% | 436MiB |
| Connection | Short-lived | 4,096 | 2,228,954 | 1.82ms | 26.70ms | 6252.7% | 408MiB |
| Concurrency | Async Delay | 32,000 | 2,068,060 | 15.35ms | 19.70ms | 5729.9% | 1.2GiB |
| Efficiency | Latency-10K | 1,024 | 9,980 | 85.1us | 117.0us | 33.3% | 442MiB |
| Efficiency | Latency-1M | 1,024 | 998,196 | 106.3us | 191.0us | 3094.3% | 398MiB |
| Efficiency | Latency-500K/8 | 1,024 | 431,527 | 1281430.7us | 4597760.0us | 801.4% | 88MiB |
| Workload | JSON Comp | 4,096 | 702,772 | 5.75ms | 141.80ms | 6673.8% | 640MiB |
| Workload | JSON Comp | 16,384 | 699,749 | 22.23ms | 545.80ms | 6377.0% | 856MiB |
| Workload | JSON TLS | 4,096 | 1,380,407 | 2.91ms | 54.99ms | 6549.0% | 629MiB |
| Workload | 8Gbit | 512 | 49,388 | 95.7us | 125.0us | 239.2% | 447MiB |
| Workload | Static TLS | 1,024 | 150,813 | 6.87ms | 67.18ms | 2692.2% | 1.6GiB |
| Database | Async DB | 1,024 | 313,957 | 2.75ms | 22.30ms | 4124.5% | 488MiB |
| Database | Fortunes | 1,024 | 266,103 | 2.19ms | 5.88ms | 5327.0% | 461MiB |
| HTTP/2 | Baseline | 256 | 9,930,179 | 2.20ms | 8.81ms | 5665.2% | 397MiB |
| HTTP/2 | Baseline | 1,024 | 10,132,332 | 8.75ms | 98.01ms | 6200.6% | 478MiB |
| HTTP/2 | Static | 256 | 150,517 | 53.45ms | 3.37s | 2166.4% | 1.8GiB |
| HTTP/2 | Static | 1,024 | 139,909 | 209.95ms | 4.80s | 2458.7% | 2.6GiB |
| HTTP/2 | Baseline (h2c) | 256 | 10,108,409 | 2.18ms | 7.90ms | 5785.3% | 384MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 11,307,504 | 7.64ms | 27.66ms | 6417.7% | 394MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 10,452,156 | 34.49ms | 150.15ms | 6222.2% | 524MiB |
| HTTP/2 | JSON (h2c) | 1,024 | 2,395,252 | 13.34ms | 96.21ms | 6475.7% | 575MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 2,290,171 | 55.03ms | 591.41ms | 6281.6% | 1.3GiB |
| gRPC | Unary | 256 | 6,366,709 | 3.12ms | 13.10ms | 4757.1% | 446MiB |
| gRPC | Unary | 1,024 | 6,477,652 | 9.17ms | 47.81ms | 4895.2% | 499MiB |
| gRPC | Unary TLS | 256 | 6,437,574 | 2.51ms | 51.33ms | 3676.2% | 442MiB |
| gRPC | Unary TLS | 1,024 | 6,321,284 | 8.18ms | 90.76ms | 3751.1% | 498MiB |
| WebSocket | Echo | 512 | 3,790,362 | 134us | 307us | 6323.4% | 342MiB |
| WebSocket | Echo | 4,096 | 3,903,025 | 1.05ms | 1.55ms | 6473.8% | 426MiB |
| WebSocket | Echo | 16,384 | 3,515,140 | 4.63ms | 6.36ms | 6476.5% | 696MiB |
| WebSocket | Echo Pipelined | 512 | 49,983,164 | 163us | 340us | 6541.2% | 347MiB |
| WebSocket | Echo Pipelined | 4,096 | 50,935,932 | 1.28ms | 1.91ms | 6331.6% | 425MiB |
| WebSocket | Echo Pipelined | 16,384 | 46,162,403 | 5.64ms | 6.87ms | 6257.1% | 712MiB |
| WebSocket | Echo Short-lived | 512 | 1,915,594 | 173us | 460us | 6095.8% | 362MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,367,362 | 496us | 1.04ms | 6426.2% | 418MiB |
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 | |
|---|---|---|---|
| cpeak | 7187 | +9% | head to head |
| tako | 6474 | -2% | head to head |
| actix | 6322 | -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