HttpArena
Frameworks

gin

Flagship · Go · engine: net/http · standard configuration · completeness 4/4

Gin web framework on the Go net/http server, default configuration. Routing and path/query binding through the Gin API, encoding/json via c.JSON, gzip through the gin-contrib/gzip middleware.

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.

FamilyRankComposite
HTTP/1.135 of 712301

Every result

Alpha Round, 13 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,096523,6797.80ms128.50ms3807.7%209MiB
ConnectionPipelined4,0961,206,20540.48ms1.76s4337.8%314MiB
ConnectionShort-lived4,096177,47822.56ms240.70ms2201.5%68MiB
ConcurrencyAsync Delay32,000755,74441.95ms119.80ms5641.5%1.3GiB
EfficiencyLatency-10K1,0249,98190.1us123.0us72.4%98MiB
EfficiencyLatency-1M1,024465,6415304373.7us10563584.0us3013.0%131MiB
EfficiencyLatency-500K/81,024211,8875752969.3us11374592.0us754.8%74MiB
WorkloadJSON Comp4,096176,78922.70ms613.00ms5374.9%1.2GiB
WorkloadJSON Comp16,384183,16187.93ms804.00ms5932.9%1.8GiB
WorkloadJSON TLS4,096322,414119.30ms1.93s4655.6%359MiB
Workload8Gbit51249,060397.4us2307.0us1064.4%86MiB
WorkloadStatic TLS1,02423,269308.75ms2.00s5703.1%662MiB
DatabaseAsync DB1,02494,13210.75ms25.60ms4082.8%182MiB

Compared with

The Go entries around gin on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs gin
fiber-tuned6462+181%head to head
go-fasthttp3274+42%head to head
echo2330+1%head to head
chi2242-3%head to head
go-stdlib1912-17%head to head

Compare gin with any Go entry · Compare gin with any entry, in any language · Every Go entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry