HttpArena
Frameworks

trillium

Emerging · Rust · engine: trillium-http · standard configuration · completeness 4/4

Trillium 1.x async Rust web framework on tokio. trillium-rustls for TLS (h1 + h2 via ALPN), trillium-quinn for HTTP/3, trillium-websockets for /ws, trillium-static for /static/* served from disk per request, trillium-compression middleware for runtime gzip/brotli, serde_json for JSON, trillium-grpc for the benchmark.BenchmarkService gRPC endpoints, deadpool-postgres for async-db and crud.

Achievements

🥉 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
🥉 BronzeWithin its languageRust · HTTP/23 of 7
🥉 BronzeWithin its languageRust · gRPC3 of 4

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.120 of 854109
HTTP/28 of 311548
HTTP/36 of 16853
Gateway7 of 8732
gRPC6 of 10851
WebSocket20 of 30962

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0961,321,8591.40ms3.27ms3390.2%201MiB
ConnectionPipelined4,0963,941,5206.41ms21.60ms6293.7%150MiB
ConnectionShort-lived4,096624,633897us1.75ms1884.9%138MiB
ConcurrencyAsync Delay32,000493,33949.38ms56.20ms2940.2%1.3GiB
EfficiencyLatency-10K1,0249,88076.0us101.0us22.3%139MiB
EfficiencyLatency-1M1,024986,592647.1us2603.0us2482.1%141MiB
EfficiencyLatency-500K/81,024352,0762636655.6us5548032.0us786.6%75MiB
WorkloadJSON Comp4,096117,1318.94ms28.10ms6096.0%807MiB
WorkloadJSON Comp16,384118,5898.11ms28.90ms5994.8%784MiB
WorkloadJSON TLS4,0961,048,5533.33ms25.56ms5116.5%428MiB
Workload8Gbit51248,970100.7us139.0us228.8%224MiB
WorkloadStatic TLS1,024683,6511.49ms22.98ms6024.6%494MiB
DatabaseAsync DB1,024222,6353.63ms5.63ms3113.5%201MiB
DatabaseFortunes1,024201,7373.68ms6.01ms4689.4%303MiB
HTTP/2Baseline2564,090,6646.27ms78.18ms6389.8%327MiB
HTTP/2Baseline1,0243,436,51820.16ms298.61ms6453.2%601MiB
HTTP/2Static25621,260362.67ms1.15s3918.3%1.8GiB
HTTP/2Static1,02417,7621.02s3.32s4428.8%2.6GiB
HTTP/2Baseline (h2c)2564,069,1186.74ms32.54ms6427.4%314MiB
HTTP/2Baseline (h2c)1,0243,562,30916.55ms329.47ms6381.9%476MiB
HTTP/2Baseline (h2c)4,0963,481,83343.72ms1.18s6110.7%1.3GiB
HTTP/2JSON (h2c)1,0242,058,29911.95ms603.79ms6402.7%962MiB
HTTP/2JSON (h2c)4,0961,840,08936.63ms3.90s6037.0%2.9GiB
HTTP/3Baseline64462,6119.96ms129.84ms2583.1%297MiB
HTTP/3Static64220,3727.83ms88.14ms2382.2%444MiB
gRPCUnary2563,059,7558.89ms41.32ms6534.2%322MiB
gRPCUnary1,0242,603,72023.77ms287.98ms6438.7%574MiB
gRPCUnary TLS2562,778,9489.75ms54.59ms6407.2%462MiB
gRPCUnary TLS1,0242,451,83827.03ms219.47ms6454.1%718MiB
GatewayGateway (H2)51268,957221.54ms1.94s4162.7%3.2GiB
GatewayGateway (H2)1,02468,626417.28ms4.08s4306.6%5.5GiB
GatewayGateway (H3)6476,39826.63ms89.55ms3948.0%838MiB
GatewayGateway (H3)25658,576135.22ms845.84ms2817.8%1.9GiB
GatewayProduction Stack25615,537246.69ms1.04s1103.0%1.1GiB
GatewayProduction Stack1,02446,799333.74ms2.14s3441.1%3.6GiB
WebSocketEcho5121,144,309421us992us1743.3%116MiB
WebSocketEcho4,0961,389,9421.34ms3.04ms2291.7%236MiB
WebSocketEcho16,3841,372,2632.30ms4.59ms2368.5%323MiB
WebSocketEcho Pipelined51217,948,083428us1.03ms2088.3%107MiB
WebSocketEcho Pipelined4,09621,916,1691.41ms3.37ms2822.4%211MiB
WebSocketEcho Pipelined16,38421,433,9002.08ms4.51ms2822.9%305MiB
WebSocketEcho Short-lived512613,064272us801us1572.2%144MiB
WebSocketEcho Short-lived4,096629,297313us1.04ms1544.0%170MiB

Compared with

The Rust web frameworks around trillium 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.

Compare trillium with any Rust entry · Compare trillium with any entry, in any language · Every Rust entry, ranked

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