HttpArena
Frameworks

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. HTTP/2 is net/http's own: over TLS through ALPN on 8443, and with prior knowledge on 8082 through http.Server.Protocols.

Achievements

🥇 1 Gold. 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.

MedalAwardFieldRank
🥇 GoldTest profileEfficiency · Latency-10K1 of 109

Composite rank

Each profile of a family is worth 1,000 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.169 of 1092026
HTTP/234 of 41410

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,096505,4788.11ms162.00ms3369.7%221MiB
ConnectionPipelined4,0961,128,60642.58ms2.01s3969.0%409MiB
ConnectionShort-lived4,096153,75426.05ms276.90ms2000.1%62MiB
ConcurrencyAsync Delay32,000705,62444.73ms125.50ms5441.0%1.3GiB
EfficiencyLatency-10K1,0249,98382.8us119.0us74.0%77MiB
EfficiencyLatency-1M1,024460,0465380815.7us10711040.0us3024.3%116MiB
EfficiencyLatency-500K/81,024211,6945751703.5us11390976.0us756.7%57MiB
WorkloadJSON Comp4,096214,80118.50ms415.00ms5290.0%521MiB
WorkloadJSON Comp16,384222,80371.96ms287.70ms5475.6%1.2GiB
WorkloadJSON TLS4,096326,856131.24ms1.92s4959.3%301MiB
Workload8Gbit51249,048388.3us2411.0us1086.8%85MiB
WorkloadStatic TLS1,024158,77925.39ms405.90ms3842.8%192MiB
DatabaseAsync DB1,02489,30211.27ms27.00ms4058.9%176MiB
HTTP/2Baseline256531,36647.28ms817.19ms4924.4%341MiB
HTTP/2Baseline1,024528,248150.46ms4.59s4704.0%958MiB
HTTP/2Static256178,91644.47ms1.34s4931.2%386MiB
HTTP/2Static1,024205,216130.18ms4.44s5648.1%1.3GiB
HTTP/2Baseline (h2c)256532,72647.20ms791.27ms5019.1%340MiB
HTTP/2Baseline (h2c)1,024541,574143.08ms4.11s5076.2%967MiB
HTTP/2Baseline (h2c)4,096455,754622.20ms4.98s4012.3%2.5GiB
HTTP/2JSON (h2c)1,024314,83387.03ms4.62s5905.5%737MiB
HTTP/2JSON (h2c)4,096290,046337.27ms4.95s5669.0%1.5GiB

Compared with

The Go web frameworks around go-stdlib on the HTTP/1.1 composite, and the one leading them. Entries of other leagues are left out: a composite does not carry from one league to another. The last column shows every profile side by side.

EntryCompositevs go-stdlib
fiber-tuned5859+189%head to head
echo2091+3%head to head
gin2080+3%head to head
chi2021-0%head to head
zinc1939-4%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