HttpArena
Frameworks

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.

MedalAwardFieldRank
🥇 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 profileHTTP/2 · JSON (h2c)1 of 26
🥇 GoldTest profilegRPC · Unary1 of 10
🥇 GoldTest profilegRPC · Unary TLS1 of 10
🥈 SilverFamily compositeComposite · WebSocket2 of 30
🥈 SilverTest profileHTTP/2 · Baseline2 of 31
🥈 SilverTest profileHTTP/2 · Baseline (h2c)2 of 26
🥈 SilverTest profileWebSocket · Echo Pipelined2 of 27
🥈 SilverTest profileWorkload · JSON TLS2 of 82
🥉 BronzeFamily compositeComposite · HTTP/1.13 of 85
🥉 BronzeFamily compositeComposite · HTTP/23 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.

FamilyRankComposite
HTTP/1.13 of 856613
HTTP/23 of 313076
gRPC1 of 102000
WebSocket2 of 302736

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,221,8061.27ms1.91ms6383.8%442MiB
ConnectionPipelined4,09621,239,6163.08ms4.10ms6311.9%436MiB
ConnectionShort-lived4,0962,228,9541.82ms26.70ms6252.7%408MiB
ConcurrencyAsync Delay32,0002,068,06015.35ms19.70ms5729.9%1.2GiB
EfficiencyLatency-10K1,0249,98085.1us117.0us33.3%442MiB
EfficiencyLatency-1M1,024998,196106.3us191.0us3094.3%398MiB
EfficiencyLatency-500K/81,024431,5271281430.7us4597760.0us801.4%88MiB
WorkloadJSON Comp4,096702,7725.75ms141.80ms6673.8%640MiB
WorkloadJSON Comp16,384699,74922.23ms545.80ms6377.0%856MiB
WorkloadJSON TLS4,0961,380,4072.91ms54.99ms6549.0%629MiB
Workload8Gbit51249,38895.7us125.0us239.2%447MiB
WorkloadStatic TLS1,024150,8136.87ms67.18ms2692.2%1.6GiB
DatabaseAsync DB1,024313,9572.75ms22.30ms4124.5%488MiB
DatabaseFortunes1,024266,1032.19ms5.88ms5327.0%461MiB
HTTP/2Baseline2569,930,1792.20ms8.81ms5665.2%397MiB
HTTP/2Baseline1,02410,132,3328.75ms98.01ms6200.6%478MiB
HTTP/2Static256150,51753.45ms3.37s2166.4%1.8GiB
HTTP/2Static1,024139,909209.95ms4.80s2458.7%2.6GiB
HTTP/2Baseline (h2c)25610,108,4092.18ms7.90ms5785.3%384MiB
HTTP/2Baseline (h2c)1,02411,307,5047.64ms27.66ms6417.7%394MiB
HTTP/2Baseline (h2c)4,09610,452,15634.49ms150.15ms6222.2%524MiB
HTTP/2JSON (h2c)1,0242,395,25213.34ms96.21ms6475.7%575MiB
HTTP/2JSON (h2c)4,0962,290,17155.03ms591.41ms6281.6%1.3GiB
gRPCUnary2566,366,7093.12ms13.10ms4757.1%446MiB
gRPCUnary1,0246,477,6529.17ms47.81ms4895.2%499MiB
gRPCUnary TLS2566,437,5742.51ms51.33ms3676.2%442MiB
gRPCUnary TLS1,0246,321,2848.18ms90.76ms3751.1%498MiB
WebSocketEcho5123,790,362134us307us6323.4%342MiB
WebSocketEcho4,0963,903,0251.05ms1.55ms6473.8%426MiB
WebSocketEcho16,3843,515,1404.63ms6.36ms6476.5%696MiB
WebSocketEcho Pipelined51249,983,164163us340us6541.2%347MiB
WebSocketEcho Pipelined4,09650,935,9321.28ms1.91ms6331.6%425MiB
WebSocketEcho Pipelined16,38446,162,4035.64ms6.87ms6257.1%712MiB
WebSocketEcho Short-lived5121,915,594173us460us6095.8%362MiB
WebSocketEcho Short-lived4,0962,367,362496us1.04ms6426.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.

EntryCompositevs ntex
cpeak7187+9%head to head
tako6474-2%head to head
actix6322-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