Go web framework comparison: any two, head to head
go-fasthttp is quicker than fiber on 6 of the 12 profiles they both run, and behind on 6. On the HTTP/1.1 composite they score 333 and 179.
Pick any two of the 7 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. What each profile measures.
| Profile | Conns | go-fasthttp req/sec | fiber req/sec | Delta | go-fasthttp p99 | fiber p99 |
|---|---|---|---|---|---|---|
| Baseline | 512 | 1,374,954 | 1,054,820 | +30% | 982us | 3.90ms |
| Baseline | 4,096 | 1,258,483 | 1,085,775 | +16% | 4.01ms | 15.00ms |
| Pipelined | 512 | 14,170,360 | 11,802,044 | +20% | 1.46ms | 2.04ms |
| Pipelined | 4,096 | 14,135,609 | 11,930,966 | +18% | 8.86ms | 11.50ms |
| Short-lived | 512 | 201,821 | 319,222 | -37% | 59.80ms | 16.70ms |
| Short-lived | 4,096 | 716,630 | 385,728 | +86% | 12.70ms | 109.70ms |
| JSON | 4,096 | 462,413 | 289,439 | +60% | 219.10ms | 407.00ms |
| JSON Comp | 512 | 34,160 | 127,783 | -73% | 164.10ms | 44.80ms |
| JSON Comp | 4,096 | 35,018 | 131,862 | -73% | 1.69s | 170.60ms |
| JSON Comp | 16,384 | 26,108 | 132,843 | -80% | 3.75s | 379.10ms |
| Upload | 32 | 2,023 | 2,182 | -7% | 72.40ms | 47.30ms |
| Upload | 256 | 2,155 | 2,362 | -9% | 484.30ms | 327.90ms |
Common comparisons
go-fasthttp vs fiber · go-fasthttp vs go-stdlib · go-fasthttp vs echo · fiber vs go-stdlib · fiber vs echo · go-stdlib vs echo
Questions
Is go-fasthttp faster than fiber?
go-fasthttp is quicker than fiber on 6 of the 12 profiles they both run, and behind on 6. On the HTTP/1.1 composite they score 333 and 179. Both run on the same machine, in the same round, against the same profiles.
Is go-fasthttp faster than go-stdlib?
go-fasthttp is quicker than go-stdlib on 7 of the 12 profiles they both run, and behind on 5. On the HTTP/1.1 composite they score 333 and 173. Both run on the same machine, in the same round, against the same profiles.
Is go-fasthttp faster than echo?
go-fasthttp is quicker than echo on 7 of the 12 profiles they both run, and behind on 5. On the HTTP/1.1 composite they score 333 and 170. Both run on the same machine, in the same round, against the same profiles.
Is fiber faster than go-stdlib?
fiber is quicker than go-stdlib on 7 of the 12 profiles they both run, and behind on 5. On the HTTP/1.1 composite they score 179 and 173. Both run on the same machine, in the same round, against the same profiles.
Which Go framework is fastest overall?
go-fasthttp holds the highest HTTP/1.1 composite of the Go entries, at 333. 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 · Other languages · Open the leaderboard