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

🥇 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.

MedalAwardFieldRank
🥇 GoldFamily compositeComposite · Database1 of 17
🥇 GoldFamily compositeComposite · HTTP/1.11 of 87
🥇 GoldFamily compositeComposite · HTTP/21 of 33
🥇 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 profileConcurrency · Async Delay1 of 83
🥇 GoldTest profileConcurrency · CON-1M-TLS1 of 8
🥇 GoldTest profileConnection · Baseline1 of 87
🥇 GoldTest profileConnection · Short-lived1 of 87
🥇 GoldTest profileDatabase · Async DB1 of 17
🥇 GoldTest profileHTTP/2 · Baseline1 of 31
🥇 GoldTest profileHTTP/2 · Baseline (h2c)1 of 26
🥇 GoldTest profileHTTP/2 · JSON (h2c)1 of 28
🥇 GoldTest profileWebSocket · Echo1 of 31
🥇 GoldTest profileWebSocket · Echo Pipelined1 of 28
🥇 GoldTest profileWorkload · JSON TLS1 of 84
🥇 GoldTest profilegRPC · Unary1 of 10
🥇 GoldTest profilegRPC · Unary TLS1 of 10
🥈 SilverTest profileDatabase · Fortunes2 of 9
🥈 SilverTest profileHTTP/2 · Static2 of 29
🥈 SilverTest profileWebSocket · Echo Short-lived2 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 876384
HTTP/21 of 333985
gRPC1 of 102000
WebSocket1 of 312876
Database1 of 171819

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,520,0731.16ms1.78ms6369.3%362MiB
ConnectionPipelined4,09622,999,2802.85ms3.65ms6617.6%354MiB
ConnectionShort-lived4,0962,708,6421.44ms3.08ms6380.0%430MiB
ConcurrencyAsync Delay32,0002,545,88112.57ms16.20ms5953.3%924MiB
ConcurrencyCON-1M1,000,000250,00076.3us133.0us894.1%9.8GiB
ConcurrencyCON-1M-TLS1,000,000249,96971.0us108.0us1482.4%35.5GiB
EfficiencyLatency-10K1,0249,98079.6us115.0us31.6%320MiB
EfficiencyLatency-1M1,024997,69799.5us173.0us2641.9%327MiB
WorkloadJSON Comp4,096829,1084.94ms11.70ms6725.3%482MiB
WorkloadJSON Comp16,384806,33920.32ms28.90ms6746.0%787MiB
WorkloadJSON TLS4,0961,747,2442.22ms46.92ms6431.6%512MiB
Workload8Gbit51249,36297.5us130.0us247.7%340MiB
WorkloadStatic TLS1,024848,4251.14ms22.05ms6478.9%520MiB
DatabaseAsync DB1,024331,4133.08ms20.40ms3118.2%263MiB
DatabaseFortunes1,024197,1065.20ms7.18ms3331.1%279MiB
HTTP/2Baseline25613,126,5801.08ms2.33ms3640.8%326MiB
HTTP/2Baseline1,02413,125,6123.82ms7.32ms3658.5%350MiB
HTTP/2Static256925,1579.31ms21.38ms6429.4%498MiB
HTTP/2Static1,024930,33734.35ms63.39ms6526.5%618MiB
HTTP/2Baseline (h2c)25613,409,4231.06ms2.49ms3545.2%313MiB
HTTP/2Baseline (h2c)1,02413,198,2603.70ms6.13ms3481.6%326MiB
HTTP/2Baseline (h2c)4,09612,606,53515.50ms25.90ms3519.7%442MiB
HTTP/2JSON (h2c)1,0243,632,7308.67ms16.86ms6598.3%525MiB
HTTP/2JSON (h2c)4,0963,322,79538.27ms59.56ms6536.1%1.1GiB
gRPCUnary2567,055,0002.11ms5.07ms1691.0%337MiB
gRPCUnary1,0247,028,5347.48ms15.00ms1781.9%426MiB
gRPCUnary TLS2566,959,5212.14ms3.11ms1765.6%376MiB
gRPCUnary TLS1,0246,880,5737.64ms10.86ms1888.7%439MiB
WebSocketEcho5124,139,195123us229us6440.0%310MiB
WebSocketEcho4,0964,297,321953us1.21ms6079.3%358MiB
WebSocketEcho16,3843,959,3904.14ms4.68ms5884.9%728MiB
WebSocketEcho Pipelined51260,969,315133us276us6346.9%308MiB
WebSocketEcho Pipelined4,09662,773,5451.04ms1.41ms6449.1%371MiB
WebSocketEcho Pipelined16,38457,073,6324.59ms5.56ms5962.2%727MiB
WebSocketEcho Short-lived5122,325,645182us535us5909.8%327MiB
WebSocketEcho Short-lived4,0962,516,7851.36ms2.13ms5883.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.

EntryCompositevs ntex
Proa6345-1%head to head
cpeak6152-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