Tilly The Coder
Tilly The Coder

Laravel Rust vs. Laravel Go vs. Laravel PHP vs. Symfony

Identical MySQL 8.4 Chirper JSON APIs (byte-verified payload parity across 10 authors & 200 chirps), benchmarked across 11 server, ORM, and JIT configurations under strict fixed-rate sustainable holds.

0 HTTP & check fails < 0.5% dropped arrivals p95 < 100 ms · 2× confirmed
Test Hardware

10-core Apple Silicon (8P + 2E) · 32 GB RAM · MySQL 8.4 · PHP 8.6.0 · Go 1.27.4 · Rust 1.100.1

1 vCPU (Intel Xeon Gold 6142) · 1.9 GiB RAM · Ubuntu 26.04 LTS · PHP 8.6.0 · Go 1.27.4 · Rust 1.100.1

Side-by-side: 10-core Apple M1 Max vs. €1.99/mo 1-vCPU Intel Xeon VPS

Frameworks Tested — Pick One for Deep-Dive & Source Code

Performance Leaderboard

Confirmed sustainable throughput (0 fails, <0.5% drops, p95 < 100 ms). Higher is better.

Confirmation p95 latency at each config’s own max passing RPS (use 50 RPS p50 for equal-load latency).

Equal-load median (p50) latency during a steady 50 RPS hold. Lower is better.

App-only + HTTP proxy RSS memory during the 50 RPS steady hold. Lower is better.

Side-by-side sustainable RPS and rank shifts between Apple M1 Max (10c) and Euronodes €1.99/mo VPS (1 vCPU).

Laravel Rust Laravel Go Symfony 8.2 Laravel 13 PHP

Full Verified Results Matrix

Two independent passing holds per winning rate, paired with the exact next failing step and App+HTTP / MySQL / k6 CPU telemetry.

Configuration Sust. RPS Confirm p50 / p95 Next Fail Failure Reason 50 RPS p50 CPU (App / DB / k6) Steady RAM
Laravel Rust · Idiomatic ORM 6,750 15.5 / 63.8 ms 7,000 3.43% drops · p95 220 ms 2.39 ms
265% / 87% / 331%
83.7 MB
Laravel Go · Idiomatic ORM 5,600 9.6 / 34.2 ms 5,800 0.52% drops 2.60 ms
285% / 115% / 278%
90.1 MB
Symfony Worker · Scalar + JIT 5,000 14.3 / 54.0 ms 5,100 1.51% drops · p95 178 ms 2.57 ms
269% / 84% / 259%
137.5 MB
Symfony Worker · Scalar (JIT Off) 4,700 48.5 / 98.6 ms 4,800 2.59% drops · p95 271 ms 2.50 ms
282% / 79% / 258%
125.2 MB
Symfony Worker · Doctrine Object 3,100 6.0 / 13.9 ms 3,200 0.70% drops · p95 139 ms 2.78 ms
325% / 52% / 171%
130.8 MB
Laravel Octane · toBase() + JIT 2,650 10.4 / 42.4 ms 2,700 p95 106.1 ms 3.21 ms
313% / 74% / 149%
281.0 MB
Laravel Octane · toBase() (JIT Off) 2,650 26.5 / 87.3 ms 2,700 1.81% drops · p95 244 ms 2.99 ms
323% / 70% / 154%
256.6 MB
Symfony FPM · Doctrine Object 1,800 6.2 / 23.9 ms 1,850 293 HTTP fails 3.77 ms
278% / 55% / 102%
175.9 MB
Laravel FPM · toBase() + JOIN + JIT 1,400 7.4 / 22.0 ms 1,450 263 HTTP fails 4.40 ms
270% / 66% / 86%
228.4 MB
Laravel Octane · Eloquent 600 50.4 / 82.9 ms 625 2.65% drops · p95 451 ms 9.35 ms
357% / 18% / 36%
259.8 MB
Laravel FPM · Eloquent (No Octane) 525 11.3 / 18.5 ms 550 11 HTTP fails · 0.92% drops · p95 243 ms 10.01 ms
332% / 23% / 35%
207.0 MB
Configuration Sust. RPS Confirm p50 / p95 Next Fail Failure Reason 50 RPS p50 CPU (App / DB / k6) Steady RAM
Symfony Worker · Scalar + JIT 145 10.9 / 80.5 ms 150 p95 143 ms 6.06 ms
31% / 15% / 33%
138.2 MB
Laravel Rust · Idiomatic ORM 135 10.6 / 95.0 ms 140 0.714% drops · p95 203 ms 5.48 ms
32% / 13% / 33%
75.7 MB
Symfony Worker · Scalar (JIT Off) 135 16.0 / 95.5 ms 140 p95 183 ms 5.73 ms
34% / 15% / 32%
127.3 MB
Laravel Go · Idiomatic ORM 105 10.8 / 89.3 ms 110 1.515% drops · p95 236 ms 6.74 ms
34% / 14% / 25%
81.7 MB
Symfony Worker · Doctrine Object 90 12.9 / 61.0 ms 95 p95 225 ms 7.90 ms
36% / 9% / 23%
129.8 MB
Laravel Octane · toBase() + JIT 75 17.5 / 55.8 ms 80 p95 145 ms 9.96 ms
39% / 11% / 21%
305.5 MB
Laravel Octane · toBase() (JIT Off) 65 13.8 / 39.5 ms 70 p95 100.0 ms 14.31 ms
36% / 9% / 18%
273.5 MB
Symfony FPM · Doctrine Object 45 26.5 / 59.0 ms 50 p95 302 ms 52.97 ms
45% / 7% / 13%
196.8 MB
Laravel FPM · toBase() + JOIN + JIT 40 22.9 / 56.4 ms 45 p95 102.5 ms 160 ms
40% / 7% / 11%
254.3 MB
Laravel Octane · Eloquent < 5 — 5 p95 107.6 ms 4,432 ms
14% / 1% / 3%
276.1 MB
Laravel FPM · Eloquent (No Octane) < 5 — 5 p95 159 ms 5,000 ms
16% / 2% / 4%
237.3 MB

Key Findings

What the Numbers Actually Prove

  • PHP was never capped at 97 RPS: On identical PHP 8.6 + 4-worker FrankenPHP, Symfony hit 3,100 RPS with full Doctrine entities (5.2× Laravel Octane Eloquent) and 5,000 RPS with scalar hydration + JIT.
  • Eloquent — not PHP-FPM boot time — dominated Laravel PHP: Adding Octane while keeping Eloquent only moved sustainable throughput by +14% (525 → 600 RPS). Dropping Eloquent for toBase() + SQL JOIN jumped Octane 4.4× to 2,650 RPS.
  • Compiled Rust & Go win above the 2,000 RPS cap: Once you remove the 2,000 RPS ceiling from the viral X post, Laravel Go (5,600 RPS) and Laravel Rust (6,750 RPS) both beat hand-tuned Symfony while keeping clean 6-line idiomatic ORM code.
  • The €1.99/mo 1-vCPU VPS flipped the leaderboard: On one Intel Xeon Gold vCPU, Symfony scalar + JIT (145 RPS) edged out Laravel Rust (135 RPS) and Laravel Go (105 RPS) — not because PHP beat Rust in app CPU (Rust used 20.4% vs Symfony’s 31.4%), but because Caddy’s reverse-proxy hop burned another 11.1% CPU on that single core.
  • JIT cut M1 Max latency in half and raised 1-vCPU ceilings: Tracing JIT cut M1 Max Octane toBase() p95 latency by 51.5% (87.3 → 42.4 ms) and lifted Symfony scalar +6.4% (4,700 → 5,000); on 1 vCPU it pushed Octane from 65 → 75 RPS (+15.4%) and Symfony scalar from 135 → 145 RPS (+7.4%).

Scientific Rigor

Methodology & Transparent Caveats

Chirper JSON API — 50% GET /api/v1/chirps (page 1), 20% page 2, 10% page 1 via prev link, 20% GET /api/v1/chirps/{id}. 10 authors, 200 chirps per isolated MySQL 8.4 schema.

All 11 normalized API snapshots verified byte-identical across feed pages 1, 2, and 4 and detail IDs 1 and 200, with gzip + Vary: Accept-Encoding enforced on every response.

  • Single-host M1 Max runs co-locate App+HTTP, MySQL 8.4, and k6 on 10 cores (8P + 2E). At 5,600–6,750 RPS, k6 uses 278–331% CPU alongside MySQL (87–115%), so top Go/Rust ceilings are single-host 12-second SLA boundaries.
  • On the €1.99/mo Euronodes K1R2 VPS (1 Xeon Gold 6142 vCPU, 1.9 GiB RAM), App+HTTP, MySQL, and k6 share one logical vCPU (k6 alone uses ~33% CPU at 135–145 RPS, plus hypervisor steal). Treat VPS results as complete single-box stack rankings rather than isolated language rankings.
  • Why Symfony scalar+JIT (145 RPS) edged out Laravel Rust (135 RPS) on 1 vCPU while Rust led by 35% on M1 Max: on a single contested core, Symfony runs 2 SQL queries (COUNT + JOIN) inside one embedded FrankenPHP process, whereas Laravel Rust & Go execute 3 eager-load queries through a separate Caddy reverse-proxy hop.
  • Localhost MySQL eliminates real VPC network RTT, which slightly favors 3-query eager loading (Eloquent, Rust, Go) over 2-query joined pagination (Symfony / toBase()).
  • On macOS, PHP-FPM connects to local MySQL via Unix socket to avoid exhausting macOS's 16,384 localhost TCP ephemeral ports (30s TIME_WAIT ≈ 546 new sockets/s) while keeping authentic per-request non-persistent PDO connections.
  • Post-overload peak RSS on M1 Max includes retained allocator/Caddy buffers from earlier high-rate probes; steady 50 RPS RSS reflects pre-overload memory footprint.