HttpArena

sober

Experimental · Sober · engine: std/http · standard configuration · completeness 4/4

Sober's standard library HTTP server (std/http on std/net, TLS 1.3 from std/tls), default configuration: HTTP/1.1, and HTTP/2 with prior knowledge (h2c) on 8082 where each stream runs its handler in its own task. One task per connection; one io_uring and one SO_REUSEPORT listener per worker — each worker accepts on its own ring and runs the connection itself (epoll fallback), with workers pinned one per CPU. Routes are a plain table ([]http.Route with method, :param / *rest patterns, Mount / Merge, before / after middleware), JSON through std/json, gzip through the built-in compression: option of the server. /async-db through std/pg, the standard library's own PostgreSQL client (wire protocol 3.0, extended query, SCRAM-SHA-256) and its connection pool (pg.OpenPool / pg.With) sized from DATABASE_MAX_CONN. Static ELF with no libc, FROM scratch.

Achievements

🥇 2 Gold · 🥉 1 Bronze. 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 profileConcurrency · Async Delay1 of 32
🥇 GoldTest profileConcurrency · CON-1M1 of 13
🥉 BronzeFamily compositeComposite · HTTP/1.13 of 36

Composite rank

Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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.13 of 366352
HTTP/211 of 201977
Database7 of 12677

Protocol compliance

The conformance suites this entry subscribes to, run against it on the benchmark machine: Http11Probe on HTTP/1.1, h2spec on HTTP/2, h3spec on HTTP/3 and Autobahn on WebSocket. A score, not part of the composite. How it works.

SuiteToolPassedFailed
HTTP/1.1http11probe d50d818159 of 159 (100%)0
HTTP/2h2spec 2.6.0146 of 146 (100%)0

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,0963,945,1251.04ms1.48ms6224.9%131MiB
ConnectionPipelined4,09631,105,8882.11ms2.78ms6723.0%125MiB
ConnectionShort-lived4,0962,702,3221.38ms1.91ms5978.4%157MiB
ConcurrencyAsync Delay32,0002,906,39011.01ms12.40ms6283.7%384MiB
ConcurrencyCON-1M1,000,000249,97250.0us75.0us493.9%8174.7MiB
ConcurrencyCON-1M-TLS1,000,000249,96188.0us114.0us1856.8%21.9GiB
EfficiencyLatency-10K1,0249,97790.3us114.0us30.9%96MiB
EfficiencyLatency-1M1,024997,57791.1us165.0us2241.0%128MiB
WorkloadJSON Comp4,096814,5075.02ms17.60ms6706.4%210MiB
WorkloadJSON Comp16,384790,29320.71ms55.30ms6730.5%508MiB
WorkloadJSON TLS4,0961,811,1521.27ms51.69ms5733.2%273MiB
Workload8Gbit51249,31192.9us113.0us191.1%147MiB
DatabaseAsync DB1,024266,2243.84ms33.40ms3315.3%372MiB
HTTP/2Baseline25610,247,2961.89ms4.29ms5279.5%150MiB
HTTP/2Baseline1,02411,345,6836.78ms17.44ms6211.5%322MiB
HTTP/2Static256151,15953.93ms112.09ms6089.1%590MiB
HTTP/2Static1,024129,019242.11ms439.54ms6377.5%1.5GiB
HTTP/2Baseline (h2c)25612,272,2081.18ms2.99ms3771.9%146MiB
HTTP/2Baseline (h2c)1,02412,397,4254.14ms7.68ms3882.3%250MiB
HTTP/2Baseline (h2c)4,09611,642,38019.82ms70.16ms3860.8%585MiB
HTTP/2JSON (h2c)1,0242,647,51411.94ms21.33ms6358.2%361MiB
HTTP/2JSON (h2c)4,0962,420,02552.24ms70.20ms6328.7%1.1GiB

Compare sober with any entry, in any language · Every Sober entry, ranked

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