HttpArena
Frameworks

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 (andybalholm/brotli), 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 · 🥈 3 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
🥇 GoldWithin its languageGo · HTTP/1.11 of 3
🥈 SilverTest profileEfficiency · Latency-1M2 of 27
🥈 SilverTest profileHTTP/3 · Static2 of 10
🥈 SilverTest profilegRPC · Unary TLS2 of 8
🥉 BronzeFamily compositeComposite · HTTP/33 of 11
🥉 BronzeFamily compositeComposite · gRPC3 of 8

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.114 of 295390
HTTP/25 of 152867
HTTP/33 of 111854
gRPC3 of 81661

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0962,885,0471.42ms2.94ms6493.4%488MiB
ConnectionPipelined4,09618,426,8893.56ms7.48ms6607.6%470MiB
ConnectionShort-lived4,0962,294,3631.76ms4.55ms5917.0%482MiB
ConcurrencyAsync Delay32,0001,544,84620.54ms28.30ms3938.9%1.0GiB
EfficiencyLatency-10K1,0249,98084.3us109.0us44.4%408MiB
EfficiencyLatency-1M1,024998,095112.9us204.0us3946.6%450MiB
EfficiencyLatency-500K/81,024423,0951476857.2us3990528.0us786.8%75MiB
WorkloadJSON Comp4,096454,3608.98ms27.00ms6191.0%577MiB
WorkloadJSON Comp16,384447,67236.21ms62.00ms6440.7%1.2GiB
WorkloadJSON TLS4,0961,370,0403.07ms64.95ms6270.6%517MiB
Workload8Gbit51249,17994.6us122.0us297.1%425MiB
WorkloadStatic TLS1,0241,183,683789.38us20.00ms5857.1%518MiB
DatabaseAsync DB1,024283,4023.08ms14.30ms5220.8%517MiB
HTTP/2Baseline25611,644,4671.74ms16.94ms5801.6%527MiB
HTTP/2Baseline1,02412,291,8866.62ms95.03ms6098.1%871MiB
HTTP/2Static256920,4428.59ms88.63ms6228.6%908MiB
HTTP/2Static1,024961,29832.26ms209.25ms6393.8%1.5GiB
HTTP/2Baseline (h2c)25612,153,4211.61ms11.18ms5675.2%539MiB
HTTP/2Baseline (h2c)1,02413,061,5206.31ms62.23ms6179.8%857MiB
HTTP/2Baseline (h2c)4,09611,376,35632.29ms120.90ms6297.7%1.9GiB
HTTP/2JSON (h2c)1,0242,804,61111.44ms66.98ms6410.6%2.1GiB
HTTP/2JSON (h2c)4,0962,601,96148.66ms249.34ms6486.7%7.1GiB
HTTP/3Baseline645,939,890567us1.11ms4192.2%551MiB
HTTP/3Static64949,7014.05ms16.82ms4641.9%1.1GiB
gRPCUnary2565,836,1993.87ms44.93ms5892.8%616MiB
gRPCUnary1,0245,866,48015.89ms454.58ms6224.6%1.5GiB
gRPCUnary TLS2565,741,9693.98ms41.04ms5932.2%610MiB
gRPCUnary TLS1,0245,697,15715.98ms413.75ms6136.1%1.5GiB

Compared with

The Go entries around fib-tuned on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs fib-tuned
fiber-tuned5998+11%head to head
fiber5631+4%head to head
fib5032-7%head to head
fnet-h14573-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