Implementation

Phoenix

Phoenix 1.8.16 · Elixir · Full-stack frameworks · ranked

frameworks/phoenix on GitHub

Scores

Score relative to Axum (1.00×, higher is better) and position among the 14 ranked implementations; Stability: pass.
CategoryPositionScore±
Hello world100.16*±29.7%
Database3–70.87*±19.1%
Application70.56*±19.5%
Memory (high-water mark)90.41±3.3%
Startup1–130.93≈±16.2%

Runner CPUs: EPYC 9V74, EPYC 7763, EPYC 9V45

Settings

Runtime
Elixir 1.20.5 on Erlang/OTP 29.1.2 (mix release)
Server
Bandit 1.14 (Phoenix's default adapter)
Workers
One BEAM node; one scheduler online per CPU the container may use (2)
Database layer
Ecto 3.14 with Postgrex, pool of DB_POOL_SIZE (16) connections
Templates
HEEx
Logging
Logger level :warning (no request lines)
Dependency source
–
Status
measured

Application endpoints: mechanisms

Validation
Schemaless Ecto changesets for the query string, the JSON body and the form: 422; the id cast with Ecto.Type.cast: 400 for a non-integer; malformed JSON 400
CSRF
token (built-in): protect_from_forgery (:browser pipeline, Plug.CSRFProtection): token in the signed cookie session, masked _csrf_token field; 403
Session store
postgresql (generator): mix phx.gen.auth: a session token in the signed cookie session, looked up in users_tokens joined with users (one query); bcrypt_elixir on users.password_bcrypt

Tier 1 endpoints

Medians over every round (lowest and highest round in brackets); vs Axum: the median of the per-round ratios on the same runners.
Endpointreq/svs AxumEfficiency (req/CPU-s)p99 (ms)ErrorsLimits
/text29,205 (19,437–60,710)0.1714,6165.420
/json27,532 (18,611–57,924)0.1713,7725.400
/db-single13,814 (9,072–27,358)0.756,92710.220
/html20,672 (14,824–44,967)0.1310,3409.280
/queries?queries=201,385 (892–2,633)1.2569896.860PostgreSQL-bound 10/15
/fortunes11,447 (7,732–22,198)0.425,72811.930
GET /world/{id}13,686 (8,788–27,409)0.776,86010.310
GET /worlds10,346 (7,019–19,400)0.745,18013.810
POST /form12,768 (9,490–28,769)0.186,39114.340
GET /me8,628 (6,068–17,361)0.944,32016.340
/updates?queries=20632 (433–1,228)1.33320206.090PostgreSQL-bound 15/15
PUT /world/{id}7,947 (5,401–15,315)0.563,99418.020

Measured versions

Runner jobs

Each job ran on its own GitHub-hosted runner; the CPU model differs between jobs.
JobCPU modelRoundsStatus
1EPYC 9V745measured
2EPYC 77635measured
3EPYC 9V455measured