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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 35 of 71 | 2301 |
Every result
Alpha Round, 13 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 523,679 | 7.80ms | 128.50ms | 3807.7% | 209MiB |
| Connection | Pipelined | 4,096 | 1,206,205 | 40.48ms | 1.76s | 4337.8% | 314MiB |
| Connection | Short-lived | 4,096 | 177,478 | 22.56ms | 240.70ms | 2201.5% | 68MiB |
| Concurrency | Async Delay | 32,000 | 755,744 | 41.95ms | 119.80ms | 5641.5% | 1.3GiB |
| Efficiency | Latency-10K | 1,024 | 9,981 | 90.1us | 123.0us | 72.4% | 98MiB |
| Efficiency | Latency-1M | 1,024 | 465,641 | 5304373.7us | 10563584.0us | 3013.0% | 131MiB |
| Efficiency | Latency-500K/8 | 1,024 | 211,887 | 5752969.3us | 11374592.0us | 754.8% | 74MiB |
| Workload | JSON Comp | 4,096 | 176,789 | 22.70ms | 613.00ms | 5374.9% | 1.2GiB |
| Workload | JSON Comp | 16,384 | 183,161 | 87.93ms | 804.00ms | 5932.9% | 1.8GiB |
| Workload | JSON TLS | 4,096 | 322,414 | 119.30ms | 1.93s | 4655.6% | 359MiB |
| Workload | 8Gbit | 512 | 49,060 | 397.4us | 2307.0us | 1064.4% | 86MiB |
| Workload | Static TLS | 1,024 | 23,269 | 308.75ms | 2.00s | 5703.1% | 662MiB |
| Database | Async DB | 1,024 | 94,132 | 10.75ms | 25.60ms | 4082.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.
| Entry | Composite | vs gin | |
|---|---|---|---|
| fiber-tuned | 6462 | +181% | head to head |
| go-fasthttp | 3274 | +42% | head to head |
| echo | 2330 | +1% | head to head |
| chi | 2242 | -3% | head to head |
| go-stdlib | 1912 | -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