go-stdlib
Flagship · Go · engine: net/http · tuned configuration · completeness 2/4
The Go standard library net/http server with no framework, default configuration. Routing through the ServeMux method and wildcard patterns of Go 1.22, JSON through encoding/json, gzip written by hand with compress/gzip because the standard library ships no compression middleware.
Achievements
🥈 1 Silver. Top three of a field, taken in this entry's own league: the family composite, the same composite among entries written in the same language, and each test profile it is scored on. Every field is the one the badges publish, so a medal and a badge always say the same thing. How medals are awarded.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥈 Silver | Test profile | Efficiency · Latency-10K | 2 of 93 |
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 | 57 of 93 | 1912 |
Every result
Alpha Round, 12 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 | 504,598 | 8.14ms | 60.80ms | 3558.0% | 201MiB |
| Connection | Pipelined | 4,096 | 1,180,568 | 41.06ms | 1.86s | 4011.6% | 399MiB |
| Connection | Short-lived | 4,096 | 169,377 | 23.69ms | 246.60ms | 2147.9% | 65MiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 86.3us | 116.0us | 71.6% | 85MiB |
| Efficiency | Latency-1M | 1,024 | 455,847 | 5423352.2us | 10760192.0us | 3011.7% | 98MiB |
| Efficiency | Latency-500K/8 | 1,024 | 213,531 | 5712563.4us | 11309056.0us | 757.2% | 55MiB |
| Workload | JSON Comp | 4,096 | 192,578 | 21.18ms | 188.80ms | 5581.6% | 722MiB |
| Workload | JSON Comp | 16,384 | 193,771 | 82.77ms | 245.10ms | 5635.0% | 1.5GiB |
| Workload | JSON TLS | 4,096 | 369,093 | 86.65ms | 1.89s | 4755.9% | 312MiB |
| Workload | 8Gbit | 512 | 48,986 | 388.4us | 2321.0us | 1104.3% | 87MiB |
| Workload | Static TLS | 1,024 | 150,056 | 21.49ms | 370.15ms | 3596.3% | 176MiB |
| Database | Async DB | 1,024 | 86,296 | 11.68ms | 27.10ms | 3976.8% | 178MiB |
Compared with
The Go entries around go-stdlib on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs go-stdlib | |
|---|---|---|---|
| fiber-tuned | 6462 | +238% | head to head |
| gin | 2301 | +20% | head to head |
| chi | 2242 | +17% | head to head |
| caddy | 828 | -57% | head to head |
Compare go-stdlib with any Go entry · Compare go-stdlib with any entry, in any language · Every Go entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry