Go web framework comparison: any two, head to head
fiber-tuned is ahead of fiber on 6 of the 11 tests they both run, and behind on 5. On the HTTP/1.1 composite fiber-tuned scores 4227 and fiber 4105.
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 |
| Fixed-rate profiles: score out of 100 | ||||||
| Latency-10K | 1,024 | 69.7 | 69.3 | +1% | 103us | 106us |
| Latency-1M | 1,024 | 68.6 | 67.7 | +1% | 241us | 246us |
| 8Gbit | 512 | 73.6 | 73.7 | 0% | 142us | 137us |
Common comparisons
fiber-tuned vs fiber · fiber-tuned vs go-fasthttp · fiber-tuned vs gin · fiber vs go-fasthttp · fiber vs gin · go-fasthttp vs gin
Questions
Is fiber-tuned faster than fiber?
fiber-tuned is ahead of fiber on 6 of the 11 tests they both run, and behind on 5. On the HTTP/1.1 composite fiber-tuned scores 4227 and fiber 4105. 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 10 of the 11 tests they both run, and behind on 1. On the HTTP/1.1 composite fiber-tuned scores 4227 and go-fasthttp 2512. Both run on the same machine, in the same round, against the same profiles.
Is fiber-tuned faster than gin?
fiber-tuned is ahead of gin on 11 of the 11 tests they both run. On the HTTP/1.1 composite fiber-tuned scores 4227 and gin 1396. 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 10 of the 11 tests they both run, and behind on 1. On the HTTP/1.1 composite fiber scores 4105 and go-fasthttp 2512. 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 4227; among the experimental Go frameworks, fib-tuned holds the highest HTTP/1.1 composite, at 4204; among the Go reverse proxies and static-file servers, fit holds the highest HTTP/1.1 composite, at 2614. 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
- gin
- echo
- 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