HttpArena

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.

ProfileConnsfiber-tunedfiberDeltafiber-tuned p99fiber p99
Requests per second
Baseline4,0962,539,2952,623,678-3%3.57ms3.47ms
Pipelined4,09618,511,67018,543,4240%7.90ms7.93ms
Short-lived4,0962,036,1842,062,489-1%6.96ms6.96ms
Async Delay32,0001,520,8641,519,0420%30.50ms30.60ms
JSON Comp4,096650,735290,414+124%23.10ms41.40ms
JSON Comp16,384636,030288,805+120%52.10ms94.00ms
JSON TLS4,0961,135,135902,093+26%120.60ms106.82ms
Static TLS1,024573,390579,542-1%28.94ms27.59ms
Fixed-rate profiles: score out of 100
Latency-10K1,02469.769.3+1%103us106us
Latency-1M1,02468.667.7+1%241us246us
8Gbit51273.673.70%142us137us

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

Results updated · Go composite ranking · Compare across languages · Other languages · Open the leaderboard