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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Within its language | Go · HTTP/1.1 | 1 of 3 |
| 🥉 Bronze | Test profile | HTTP/3 · Static | 3 of 12 |
| 🥉 Bronze | Test profile | gRPC · Unary TLS | 3 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.
Every result
Alpha Round, 26 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 2,919,118 | 1.40ms | 2.87ms | 6257.0% | 494MiB |
| Connection | Pipelined | 4,096 | 18,451,270 | 3.55ms | 7.52ms | 6413.1% | 474MiB |
| Connection | Short-lived | 4,096 | 2,327,131 | 1.74ms | 4.60ms | 6122.0% | 486MiB |
| Concurrency | Async Delay | 32,000 | 1,552,894 | 20.45ms | 28.00ms | 3901.1% | 1.0GiB |
| Efficiency | Latency-10K | 1,024 | 9,979 | 84.0us | 111.0us | 43.9% | 414MiB |
| Efficiency | Latency-1M | 1,024 | 997,789 | 119.9us | 204.0us | 3963.8% | 457MiB |
| Workload | JSON Comp | 4,096 | 734,189 | 5.56ms | 17.10ms | 6195.2% | 530MiB |
| Workload | JSON Comp | 16,384 | 720,921 | 22.54ms | 41.10ms | 6124.2% | 754MiB |
| Workload | JSON TLS | 4,096 | 1,371,229 | 3.12ms | 90.59ms | 6385.1% | 527MiB |
| Workload | 8Gbit | 512 | 49,346 | 93.9us | 120.0us | 321.2% | 442MiB |
| Workload | Static TLS | 1,024 | 1,194,777 | 795.37us | 29.80ms | 5867.0% | 472MiB |
| HTTP/2 | Baseline | 256 | 11,751,759 | 1.69ms | 17.32ms | 5721.6% | 525MiB |
| HTTP/2 | Baseline | 1,024 | 12,510,120 | 6.57ms | 104.66ms | 6096.9% | 872MiB |
| HTTP/2 | Static | 256 | 919,075 | 8.66ms | 59.36ms | 6305.0% | 816MiB |
| HTTP/2 | Static | 1,024 | 962,508 | 32.26ms | 142.62ms | 6170.3% | 1.9GiB |
| HTTP/2 | Baseline (h2c) | 256 | 12,148,243 | 1.57ms | 11.26ms | 5623.2% | 521MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 13,377,344 | 5.71ms | 37.35ms | 6113.4% | 863MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 11,556,042 | 29.58ms | 131.60ms | 6224.3% | 1.9GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 2,812,494 | 11.54ms | 65.66ms | 6410.5% | 2.2GiB |
| HTTP/2 | JSON (h2c) | 4,096 | 2,613,224 | 48.46ms | 234.12ms | 6452.6% | 7.2GiB |
| HTTP/3 | Baseline | 64 | 6,183,682 | 544us | 941us | 4051.3% | 560MiB |
| HTTP/3 | Static | 64 | 955,948 | 3.93ms | 15.12ms | 4639.1% | 1.0GiB |
| gRPC | Unary | 256 | 5,943,950 | 3.81ms | 56.85ms | 6002.3% | 628MiB |
| gRPC | Unary | 1,024 | 5,902,673 | 15.65ms | 297.43ms | 6224.8% | 1.5GiB |
| gRPC | Unary TLS | 256 | 5,778,769 | 3.98ms | 58.27ms | 6072.2% | 660MiB |
| gRPC | Unary TLS | 1,024 | 5,702,782 | 16.11ms | 354.07ms | 6088.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.
| Entry | Composite | vs fib-tuned | |
|---|---|---|---|
| fib | 4128 | -2% | head to head |
| fnet-h1 | 3555 | -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