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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Within its language | Go · HTTP/1.1 | 1 of 3 |
| 🥈 Silver | Test profile | Efficiency · Latency-1M | 2 of 27 |
| 🥈 Silver | Test profile | HTTP/3 · Static | 2 of 10 |
| 🥈 Silver | Test profile | gRPC · Unary TLS | 2 of 8 |
| 🥉 Bronze | Family composite | Composite · HTTP/3 | 3 of 11 |
| 🥉 Bronze | Family composite | Composite · gRPC | 3 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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 14 of 29 | 5390 |
| HTTP/2 | 5 of 15 | 2867 |
| HTTP/3 | 3 of 11 | 1854 |
| gRPC | 3 of 8 | 1661 |
Every result
Alpha Round, 28 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,885,047 | 1.42ms | 2.94ms | 6493.4% | 488MiB |
| Connection | Pipelined | 4,096 | 18,426,889 | 3.56ms | 7.48ms | 6607.6% | 470MiB |
| Connection | Short-lived | 4,096 | 2,294,363 | 1.76ms | 4.55ms | 5917.0% | 482MiB |
| Concurrency | Async Delay | 32,000 | 1,544,846 | 20.54ms | 28.30ms | 3938.9% | 1.0GiB |
| Efficiency | Latency-10K | 1,024 | 9,980 | 84.3us | 109.0us | 44.4% | 408MiB |
| Efficiency | Latency-1M | 1,024 | 998,095 | 112.9us | 204.0us | 3946.6% | 450MiB |
| Efficiency | Latency-500K/8 | 1,024 | 423,095 | 1476857.2us | 3990528.0us | 786.8% | 75MiB |
| Workload | JSON Comp | 4,096 | 454,360 | 8.98ms | 27.00ms | 6191.0% | 577MiB |
| Workload | JSON Comp | 16,384 | 447,672 | 36.21ms | 62.00ms | 6440.7% | 1.2GiB |
| Workload | JSON TLS | 4,096 | 1,370,040 | 3.07ms | 64.95ms | 6270.6% | 517MiB |
| Workload | 8Gbit | 512 | 49,179 | 94.6us | 122.0us | 297.1% | 425MiB |
| Workload | Static TLS | 1,024 | 1,183,683 | 789.38us | 20.00ms | 5857.1% | 518MiB |
| Database | Async DB | 1,024 | 283,402 | 3.08ms | 14.30ms | 5220.8% | 517MiB |
| HTTP/2 | Baseline | 256 | 11,644,467 | 1.74ms | 16.94ms | 5801.6% | 527MiB |
| HTTP/2 | Baseline | 1,024 | 12,291,886 | 6.62ms | 95.03ms | 6098.1% | 871MiB |
| HTTP/2 | Static | 256 | 920,442 | 8.59ms | 88.63ms | 6228.6% | 908MiB |
| HTTP/2 | Static | 1,024 | 961,298 | 32.26ms | 209.25ms | 6393.8% | 1.5GiB |
| HTTP/2 | Baseline (h2c) | 256 | 12,153,421 | 1.61ms | 11.18ms | 5675.2% | 539MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 13,061,520 | 6.31ms | 62.23ms | 6179.8% | 857MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 11,376,356 | 32.29ms | 120.90ms | 6297.7% | 1.9GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 2,804,611 | 11.44ms | 66.98ms | 6410.6% | 2.1GiB |
| HTTP/2 | JSON (h2c) | 4,096 | 2,601,961 | 48.66ms | 249.34ms | 6486.7% | 7.1GiB |
| HTTP/3 | Baseline | 64 | 5,939,890 | 567us | 1.11ms | 4192.2% | 551MiB |
| HTTP/3 | Static | 64 | 949,701 | 4.05ms | 16.82ms | 4641.9% | 1.1GiB |
| gRPC | Unary | 256 | 5,836,199 | 3.87ms | 44.93ms | 5892.8% | 616MiB |
| gRPC | Unary | 1,024 | 5,866,480 | 15.89ms | 454.58ms | 6224.6% | 1.5GiB |
| gRPC | Unary TLS | 256 | 5,741,969 | 3.98ms | 41.04ms | 5932.2% | 610MiB |
| gRPC | Unary TLS | 1,024 | 5,697,157 | 15.98ms | 413.75ms | 6136.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.
| Entry | Composite | vs fib-tuned | |
|---|---|---|---|
| fiber-tuned | 5998 | +11% | head to head |
| fiber | 5631 | +4% | head to head |
| fib | 5032 | -7% | head to head |
| fnet-h1 | 4573 | -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