HttpArena
Frameworks

mq-bridge

Emerging · Rust · standard configuration · completeness 3/4

mq-bridge async message-bridging library run as an HTTP server. A single catch-all http->response route dispatches on request metadata and replies through mq-bridge's inline-response fast path; hyper-util's auto connection builder serves HTTP/1.1 and HTTP/2 prior-knowledge (h2c) on the cleartext port (8080) and HTTP/2-over-TLS (ALPN h2) on 8443. Postgres via the library's re-exported sqlx for async-db and crud (in-process cache-aside, one-second TTL), fortunes rendered per request with the Askama template engine, dataset read from /data/dataset.json, static assets from /data/static, response compression negotiated per request by the library from Accept-Encoding (zstd > gzip > lz4).

Achievements

🥈 1 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
🥈 SilverTest profileEfficiency · Latency-10K2 of 71
🥉 BronzeWithin its languageRust · HTTP/1.13 of 7
🥉 BronzeWithin its languageRust · WebSocket3 of 4

Composite rank

Each profile of a family is worth 100 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.17 of 714610
HTTP/211 of 18514
WebSocket11 of 15427

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0961,157,0173.54ms6.80ms4293.0%171MiB
ConnectionPipelined4,0965,455,29612.01ms38.90ms6306.0%173MiB
ConnectionShort-lived4,096719,8365.68ms23.80ms5455.0%245MiB
ConcurrencyAsync Delay32,000314,326100.51ms148.50ms5154.7%1.2GiB
EfficiencyLatency-10K1,0249,98374.0us110.0us24.0%83MiB
EfficiencyLatency-1M1,024997,486727.7us2659.0us3190.0%86MiB
EfficiencyLatency-500K/81,024317,9723603396.5us7170048.0us783.6%56MiB
WorkloadJSON Comp4,096385,76510.60ms32.70ms6522.1%257MiB
WorkloadJSON Comp16,384377,58042.78ms82.30ms6566.3%770MiB
WorkloadJSON TLS4,096941,9234.53ms56.50ms5530.7%251MiB
Workload8Gbit51249,161108.5us156.0us259.4%88MiB
WorkloadStatic TLS1,024103,59910.27ms66.65ms3869.2%291MiB
DatabaseAsync DB1,024134,1257.09ms9.06ms3285.3%161MiB
DatabaseFortunes1,024124,9196.85ms9.21ms5143.2%171MiB
HTTP/2Baseline256672,77537.15ms139.93ms4696.2%271MiB
HTTP/2Baseline1,024596,063158.01ms559.95ms4737.5%800MiB
HTTP/2Static256102,09678.39ms443.82ms3544.2%302MiB
HTTP/2Static1,02497,656314.51ms859.29ms3504.2%966MiB
HTTP/2Baseline (h2c)256659,35538.24ms138.87ms4720.3%266MiB
HTTP/2Baseline (h2c)1,024596,716163.76ms568.52ms4822.3%910MiB
HTTP/2Baseline (h2c)4,096541,124626.89ms3.08s4705.9%2.4GiB
HTTP/2JSON (h2c)1,024620,62550.71ms166.87ms4124.3%387MiB
HTTP/2JSON (h2c)4,096565,675213.23ms837.74ms4061.2%1.1GiB
WebSocketEcho5121,172,794436us1.05ms1824.5%45MiB
WebSocketEcho4,0961,362,5403.00ms4.62ms2209.3%155MiB
WebSocketEcho16,3841,098,01614.70ms16.60ms2010.1%450MiB
WebSocketEcho Pipelined5125,265,1461.55ms4.00ms6263.6%41MiB
WebSocketEcho Pipelined4,0965,655,07411.56ms36.90ms6446.2%156MiB
WebSocketEcho Pipelined16,3845,559,65345.83ms84.40ms6667.1%460MiB

Compared with

The Rust entries around mq-bridge on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs mq-bridge
actix6880+49%head to head
ntex5956+29%head to head
tokio4738+3%head to head
axum4494-3%head to head
tokio-uring3462-25%head to head

Compare mq-bridge with any Rust entry · Compare mq-bridge with any entry, in any language · Every Rust entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry