zinc
Emerging · Go · engine: net/http · standard configuration · completeness 4/4
Zinc on the Go net/http server, default configuration. Routing and path/query values through the Zinc API, encoding/json via c.JSON, JSON bodies through c.Bind().JSON, gzip through the Zinc compress 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 | 46 of 76 | 2090 |
| HTTP/2 | 20 of 23 | 279 |
Every result
Alpha Round, 22 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 | 484,096 | 8.46ms | 77.00ms | 3647.3% | 205MiB |
| Connection | Pipelined | 4,096 | 1,105,274 | 42.74ms | 2.15s | 4343.2% | 439MiB |
| Connection | Short-lived | 4,096 | 171,080 | 23.50ms | 254.90ms | 2205.8% | 66MiB |
| Concurrency | Async Delay | 32,000 | 669,492 | 47.34ms | 133.80ms | 5493.1% | 1.3GiB |
| Efficiency | Latency-10K | 1,024 | 9,979 | 92.8us | 124.0us | 78.2% | 79MiB |
| Efficiency | Latency-1M | 1,024 | 427,489 | 5685956.1us | 11317248.0us | 3039.7% | 96MiB |
| Efficiency | Latency-500K/8 | 1,024 | 195,445 | 6079223.0us | 12021760.0us | 753.2% | 56MiB |
| Workload | JSON Comp | 4,096 | 179,477 | 22.76ms | 112.20ms | 5704.5% | 949MiB |
| Workload | JSON Comp | 16,384 | 180,661 | 88.52ms | 310.60ms | 5746.6% | 1.1GiB |
| Workload | JSON TLS | 4,096 | 358,255 | 117.34ms | 1.93s | 4990.2% | 316MiB |
| Workload | 8Gbit | 512 | 49,094 | 609.9us | 3631.0us | 1411.8% | 100MiB |
| Workload | Static TLS | 1,024 | 22,733 | 326.89ms | 1.90s | 5865.9% | 539MiB |
| Database | Async DB | 1,024 | 96,667 | 10.46ms | 24.20ms | 4131.9% | 184MiB |
| HTTP/2 | Baseline | 256 | 532,667 | 45.00ms | 923.91ms | 4936.7% | 362MiB |
| HTTP/2 | Baseline | 1,024 | 515,929 | 147.88ms | 4.61s | 4591.1% | 1.1GiB |
| HTTP/2 | Static | 256 | - | - | - | 4617.1% | 2.6GiB |
| HTTP/2 | Static | 1,024 | - | - | - | 6101.1% | 10.9GiB |
| HTTP/2 | Baseline (h2c) | 256 | 522,918 | 47.53ms | 669.28ms | 5043.9% | 356MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 523,050 | 158.62ms | 3.73s | 4838.2% | 1.0GiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 434,860 | 551.78ms | 4.99s | 4148.1% | 2.3GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 337,321 | 83.99ms | 4.08s | 5634.4% | 752MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 328,686 | 224.34ms | 4.77s | 5521.5% | 1.4GiB |
Compared with
The Go entries around zinc on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs zinc | |
|---|---|---|---|
| fib-tuned | 7101 | +240% | head to head |
| gin | 2226 | +6% | head to head |
| chi | 2169 | +4% | head to head |
| go-stdlib | 1860 | -11% | head to head |
| caddy | 683 | -67% | head to head |
Compare zinc with any Go entry · Compare zinc with any entry, in any language · Every Go entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry