HttpArena

mojo-http + nginx

Experimental · Mojo · engine: mojo-http · standard configuration · completeness 4/4

The mojo-http entry's image, unchanged, behind stock nginx. gateway-64 and gateway-h3: nginx terminates TLS with HTTP/2 (and HTTP/3 through its http_v3_module) on 8443 and serves /static from disk with its .gz twins; /baseline2, /json and /async-db go to mojo-http on 127.0.0.1:8080 over pooled HTTP/1.1. production-stack: nginx terminates TLS and HTTP/2 on 8443, serves /static, checks each /api request's JWT through HttpArena's shared authsvc (auth_request) and proxies /public and /api to mojo-http on 127.0.0.1:8080. Reads go through a process-wide in-memory cache (mojo_http.cache), then Redis (its own RESP client, mojo_http.redis), then PostgreSQL; a POST updates the row and drops both cached copies.

Achievements

🥇 2 Gold · 🥈 2 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.

MedalAwardFieldRank
🥇 GoldTest profileGateway · Gateway (H2)1 of 4
🥇 GoldTest profileGateway · Gateway (H3)1 of 4
🥈 SilverFamily compositeComposite · Gateway2 of 4
🥈 SilverTest profileGateway · Production Stack2 of 3

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
Gateway2 of 42885

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
GatewayGateway (H2)512328,07549.31ms102.00ms4776.4%1.5GiB
GatewayGateway (H2)1,024324,28398.40ms202.66ms4908.0%1.8GiB
GatewayGateway (H3)64201,88412.01ms43.30ms3493.7%1.3GiB
GatewayGateway (H3)256210,01238.85ms153.36ms4102.0%1.7GiB
GatewayProduction Stack256207,39318.38ms51.92ms3943.5%1.2GiB
GatewayProduction Stack1,024199,96080.94ms301.38ms4111.1%2.0GiB

Compared with

The experimental Mojo frameworks around mojo-http + nginx on the Gateway 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 mojo-http + nginx
mojo-http + Caddy646-78%head to head

Compare mojo-http + nginx with any Mojo entry · Compare mojo-http + nginx with any entry, in any language · Every Mojo entry, ranked

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