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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Test profile | Gateway · Gateway (H2) | 1 of 4 |
| 🥇 Gold | Test profile | Gateway · Gateway (H3) | 1 of 4 |
| 🥈 Silver | Family composite | Composite · Gateway | 2 of 4 |
| 🥈 Silver | Test profile | Gateway · Production Stack | 2 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.
| Family | Rank | Composite |
|---|---|---|
| Gateway | 2 of 4 | 2885 |
Every result
Alpha Round, 6 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 |
|---|---|---|---|---|---|---|---|
| Gateway | Gateway (H2) | 512 | 328,075 | 49.31ms | 102.00ms | 4776.4% | 1.5GiB |
| Gateway | Gateway (H2) | 1,024 | 324,283 | 98.40ms | 202.66ms | 4908.0% | 1.8GiB |
| Gateway | Gateway (H3) | 64 | 201,884 | 12.01ms | 43.30ms | 3493.7% | 1.3GiB |
| Gateway | Gateway (H3) | 256 | 210,012 | 38.85ms | 153.36ms | 4102.0% | 1.7GiB |
| Gateway | Production Stack | 256 | 207,393 | 18.38ms | 51.92ms | 3943.5% | 1.2GiB |
| Gateway | Production Stack | 1,024 | 199,960 | 80.94ms | 301.38ms | 4111.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.
| Entry | Composite | vs mojo-http + nginx | |
|---|---|---|---|
| mojo-http + Caddy | 646 | -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