HttpArena

fib-tuned

Experimental · Go · engine: fib · tuned configuration · completeness 4/4

The fib entry with its compression replaced: the JSON routes sit behind a compression middleware written in the entry on fib's middleware API (Context.OnResponse, as fib's own compress, around the routes through Router.With), coding brotli (molecule-man/go-brrr, the encoder fasthttp and so fiber-tuned use), zstd, gzip and deflate (klauspost/compress) as Accept-Encoding weighs them, with fiber-tuned's settings (compress.LevelBestSpeed): brotli quality 0, zstd fastest, gzip and deflate level 1, bodies of 200 bytes or more, and between codings a client weighs the same brotli first, then zstd, gzip and deflate, fiber's order. JSON responses are encoded with sonic, which Context.JSON calls as fib's JSONEncoder. It runs with GOGC=200. Everything else - prefork with a child for every two CPUs, fib's default configuration, listeners on 8080/8082/8081/8443 tcp+udp/9000, fib's Router and routes, gRPC through fib's grpc package, static through FileCache, TLS - is the fib entry's.

Achievements

🥇 1 Gold · 🥉 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
🥇 GoldWithin its languageGo · HTTP/1.11 of 3
🥉 BronzeTest profileHTTP/3 · Static3 of 12
🥉 BronzeTest profilegRPC · Unary TLS3 of 10

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.115 of 344204
HTTP/27 of 202709
HTTP/35 of 131680
gRPC4 of 101654

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0962,919,1181.40ms2.87ms6257.0%494MiB
ConnectionPipelined4,09618,451,2703.55ms7.52ms6413.1%474MiB
ConnectionShort-lived4,0962,327,1311.74ms4.60ms6122.0%486MiB
ConcurrencyAsync Delay32,0001,552,89420.45ms28.00ms3901.1%1.0GiB
EfficiencyLatency-10K1,0249,97984.0us111.0us43.9%414MiB
EfficiencyLatency-1M1,024997,789119.9us204.0us3963.8%457MiB
WorkloadJSON Comp4,096734,1895.56ms17.10ms6195.2%530MiB
WorkloadJSON Comp16,384720,92122.54ms41.10ms6124.2%754MiB
WorkloadJSON TLS4,0961,371,2293.12ms90.59ms6385.1%527MiB
Workload8Gbit51249,34693.9us120.0us321.2%442MiB
WorkloadStatic TLS1,0241,194,777795.37us29.80ms5867.0%472MiB
HTTP/2Baseline25611,751,7591.69ms17.32ms5721.6%525MiB
HTTP/2Baseline1,02412,510,1206.57ms104.66ms6096.9%872MiB
HTTP/2Static256919,0758.66ms59.36ms6305.0%816MiB
HTTP/2Static1,024962,50832.26ms142.62ms6170.3%1.9GiB
HTTP/2Baseline (h2c)25612,148,2431.57ms11.26ms5623.2%521MiB
HTTP/2Baseline (h2c)1,02413,377,3445.71ms37.35ms6113.4%863MiB
HTTP/2Baseline (h2c)4,09611,556,04229.58ms131.60ms6224.3%1.9GiB
HTTP/2JSON (h2c)1,0242,812,49411.54ms65.66ms6410.5%2.2GiB
HTTP/2JSON (h2c)4,0962,613,22448.46ms234.12ms6452.6%7.2GiB
HTTP/3Baseline646,183,682544us941us4051.3%560MiB
HTTP/3Static64955,9483.93ms15.12ms4639.1%1.0GiB
gRPCUnary2565,943,9503.81ms56.85ms6002.3%628MiB
gRPCUnary1,0245,902,67315.65ms297.43ms6224.8%1.5GiB
gRPCUnary TLS2565,778,7693.98ms58.27ms6072.2%660MiB
gRPCUnary TLS1,0245,702,78216.11ms354.07ms6088.1%1.5GiB

Compared with

The experimental Go frameworks around fib-tuned 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 fib-tuned
fib4128-2%head to head
fnet-h13555-15%head to head

Compare fib-tuned with any Go entry · Compare fib-tuned with any entry, in any language · Every Go entry, ranked

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