Go web framework comparison: any two, head to head
fiber-tuned is ahead of fiber on 7 of the 13 tests they both run, and behind on 6. On the HTTP/1.1 composite fiber-tuned scores 5859 and fiber 5490.
Pick any two of the 18 Go entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.
| Profile | Conns | fiber-tuned | fiber | Delta | fiber-tuned p99 | fiber p99 |
|---|---|---|---|---|---|---|
| Requests per second | ||||||
| Baseline | 4,096 | 2,539,295 | 2,623,678 | -3% | 3.57ms | 3.47ms |
| Pipelined | 4,096 | 18,511,670 | 18,543,424 | 0% | 7.90ms | 7.93ms |
| Short-lived | 4,096 | 2,036,184 | 2,062,489 | -1% | 6.96ms | 6.96ms |
| Async Delay | 32,000 | 1,520,864 | 1,519,042 | 0% | 30.50ms | 30.60ms |
| JSON Comp | 4,096 | 650,735 | 290,414 | +124% | 23.10ms | 41.40ms |
| JSON Comp | 16,384 | 636,030 | 288,805 | +120% | 52.10ms | 94.00ms |
| JSON TLS | 4,096 | 1,135,135 | 902,093 | +26% | 120.60ms | 106.82ms |
| Static TLS | 1,024 | 573,390 | 579,542 | -1% | 28.94ms | 27.59ms |
| Async DB | 1,024 | 240,544 | 240,295 | 0% | 29.40ms | 23.00ms |
| Fixed-rate profiles: score out of 100 | ||||||
| Latency-10K | 1,024 | 69.8 | 69.5 | 0% | 103us | 106us |
| Latency-1M | 1,024 | 68.6 | 67.7 | +1% | 241us | 246us |
| Latency-500K/8 | 1,024 | 27.4 | 27.5 | 0% | 6.30s | 6.79s |
| 8Gbit | 512 | 73.8 | 73.9 | 0% | 142us | 137us |
Common comparisons
fiber-tuned vs fiber · fiber-tuned vs go-fasthttp · fiber-tuned vs echo · fiber vs go-fasthttp · fiber vs echo · go-fasthttp vs echo
Questions
Is fiber-tuned faster than fiber?
fiber-tuned is ahead of fiber on 7 of the 13 tests they both run, and behind on 6. On the HTTP/1.1 composite fiber-tuned scores 5859 and fiber 5490. Both run on the same machine, in the same round, against the same profiles.
Is fiber-tuned faster than go-fasthttp?
fiber-tuned is ahead of go-fasthttp on 11 of the 13 tests they both run, and behind on 2. On the HTTP/1.1 composite fiber-tuned scores 5859 and go-fasthttp 3397. Both run on the same machine, in the same round, against the same profiles.
Is fiber-tuned faster than echo?
fiber-tuned is ahead of echo on 13 of the 13 tests they both run. On the HTTP/1.1 composite fiber-tuned scores 5859 and echo 2091. Both run on the same machine, in the same round, against the same profiles.
Is fiber faster than go-fasthttp?
fiber is ahead of go-fasthttp on 11 of the 13 tests they both run, and behind on 2. On the HTTP/1.1 composite fiber scores 5490 and go-fasthttp 3397. Both run on the same machine, in the same round, against the same profiles.
Which Go framework is fastest overall?
Among the Go web frameworks, fiber-tuned holds the highest HTTP/1.1 composite, at 5859; among the experimental Go frameworks, fib-tuned holds the highest HTTP/1.1 composite, at 5614; among the Go reverse proxies and static-file servers, fit holds the highest HTTP/1.1 composite, at 3438. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.
Every Go entry
- fiber-tuned
- fiber
- go-fasthttp
- echo
- gin
- go-stdlib
- chi
- zinc
- fib-tuned
- fib
- fnet-h1
- fit
- caddy
- fnet-ws
- go-websocket
- grpc-go
- quic-go
- uio-ws
Results updated · Go composite ranking · Compare across languages · Other languages · Open the leaderboard