Tilly The Coder
Tilly The Coder
Rust 1.100.1 0.1.0 (Beta · Dec 1, 2026) #1 M1 Max · #2 €1.99 VPS

Laravel Rust Benchmarks

Laravel Rust 0.1.0 brings Laravel's routing, models, eager loading, migrations, queues, durable workflows, Reverb WebSockets, and Inertia.js to Rust. Crucially, it topped the entire 11-variant field while still running a clean 6-line idiomatic ORM handler (3 queries: COUNT, chirps, authors) rather than hand-written SQL joins.

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

Peak Confirmed RPS

6,750 RPS

Idiomatic ORM

Confirm p50 / p95

15.5 / 63.8ms

Fails at 7,000 RPS

50 RPS Latency & RAM

2.39ms p50

83.7 MB total (21.7 MB app)

Cold Build Time

1m

23s · release, thin LTO, 28 MB arm64 binary

Peak Confirmed RPS

135 RPS

Idiomatic ORM

Confirm p50 / p95

10.6 / 95.0ms

Fails at 140 RPS

50 RPS Latency & RAM

5.48ms p50

75.7 MB total (23.1 MB app)

Cold Build Time

25m

46s · single vCPU, 1.9 GiB RAM + swap

Benchmark Configuration & Raw Trials

Fixed-rate binary-search holds, confirmation latency, exact failure threshold, CPU split, and steady-state telemetry.

Idiomatic ORM

laravel-rust
Tokio + Axum + Caddy gzip 3-query eager load (COUNT + chirps + authors) JIT: N/A (AOT compiled) TOKIO_WORKER_THREADS=4

6,750 RPS

Confirmed twice · 0 fails

Confirmation Latency

15.5 / 63.8 ms

p50 / p95 · max 131 ms · 0.19% drops

Next Failing Step

7,000 RPS

3.43% drops · p95 220 ms

Steady 50 RPS Hold

2.39 / 7.6 ms

App+HTTP 10.0% · MySQL 3.3% CPU

Memory (50 RPS → Peak)

83.7 → 624.2 MB

App-only peak: 211.6 MB

CPU Split at Confirmed Ceiling (683% total)
App+HTTP 265.2% MySQL 86.7% k6 330.6%
Upstream-style 10→7,000 RPS ramp note: Best zero-failure 10s window scored 6,515.3 RPS at p50 5.0 ms (window drops: 165).
Inspect all 9 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
5,000 PASS 4,997.5 1.00 ms 7.32 ms 0.00% 0 245% / 74% / 270% 131.6 MB
14,000 FAIL 6,591.7 238.53 ms 264.37 ms 52.26% 0 263% / 87% / 329% 526.5 MB
9,500 FAIL 6,622.4 230.75 ms 261.38 ms 29.32% 0 270% / 89% / 334% 623.2 MB
7,250 FAIL 6,592.1 192.45 ms 238.16 ms 7.75% 0 264% / 83% / 335% 623.9 MB
6,000 PASS 5,991.6 2.87 ms 15.31 ms 0.00% 0 265% / 84% / 308% 623.9 MB
6,500 PASS 6,485.5 9.31 ms 27.71 ms 0.00% 0 268% / 87% / 330% 624.0 MB
6,750 PASS 6,739.4 14.83 ms 46.78 ms 0.00% 0 268% / 87% / 333% 624.1 MB
7,000 FAIL 6,679.9 111.41 ms 220.15 ms 3.43% 0 266% / 86% / 330% 624.1 MB
6,750 PASS 6,706.2 15.46 ms 63.82 ms 0.19% 0 265% / 87% / 331% 624.2 MB

Idiomatic ORM

laravel-rust
Tokio + Axum + Caddy gzip 3-query eager load (COUNT + chirps + authors) JIT: N/A (AOT compiled) TOKIO_WORKER_THREADS=4

135 RPS

Confirmed twice · 0 fails

Confirmation Latency

10.6 / 95.0 ms

p50 / p95 · max 247 ms · 0.00% drops

Next Failing Step

140 RPS

0.714% drops · p95 203 ms

Steady 50 RPS Hold

5.48 / 17.6 ms

App+HTTP 12.7% · MySQL 5.6% CPU

Memory (50 RPS → Peak)

75.7 → 85.3 MB

App-only peak: 27.1 MB

CPU Split at Confirmed Ceiling (78% total)
App+HTTP 31.5% MySQL 13.4% k6 33.0%
Inspect all 8 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
50 PASS 50.3 5.41 ms 17.05 ms 0.00% 0 12% / 5% / 14% 75.4 MB
100 PASS 100.3 6.40 ms 20.69 ms 0.00% 0 23% / 9% / 24% 78.3 MB
200 FAIL 161.0 463.13 ms 817.12 ms 20.71% 0 38% / 17% / 39% 89.5 MB
150 FAIL 150.3 25.45 ms 118.47 ms 0.00% 0 37% / 15% / 36% 89.5 MB
125 PASS 125.3 5.71 ms 43.38 ms 0.00% 0 30% / 12% / 30% 84.9 MB
135 PASS 135.4 12.07 ms 94.82 ms 0.00% 0 31% / 13% / 33% 85.3 MB
140 FAIL 139.3 41.80 ms 203.26 ms 0.71% 0 36% / 15% / 37% 85.3 MB
135 PASS 135.3 10.56 ms 94.97 ms 0.00% 0 32% / 13% / 33% 85.3 MB

Where Laravel Rust Sits vs. the Full Field

Highlighted bars belong to Laravel Rust. Click any row to jump directly to that framework’s deep-dive.

Actual Benchmark Source Code

The exact controller/handler code executed during the timed runs for Laravel Rust.

src/http/handlers/chirps.rs

Exact 16-line idiomatic handler — 3 queries via .with(Chirp::author) and automatic pagination envelope.

rust
use laravel::pagination::Paginator;
use laravel::prelude::*;

use crate::models::Chirp;

pub async fn index() -> laravel::Result<Json<Paginator<Chirp>>> {
    let chirps = Chirp::query()
        .with(Chirp::author)
        .order_by(Chirp::id.desc())
        .paginate(50)
        .await?;

    Ok(Json(chirps))
}

pub async fn show(mut chirp: Chirp) -> laravel::Result<Json<Chirp>> {
    chirp.load(Chirp::author).await?;

    Ok(Json(chirp))
}

Architecture & Audit Notes

  • Built natively on Tokio (async runtime) and Axum (HTTP) with Tower middleware — not a PHP port.
  • Audit reality check: Zhan was accurate that laravel/rust-framework resolves container bindings via RwLock<HashMap<TypeId, Arc<Slot>>> and runs a 3-query eager load — but in compiled Rust those lookups take nanoseconds instead of milliseconds.
  • Compile-time macro checks validate models, relations, routes, and form structs before deployment, paired with built-in .agents/skills/ guardrails for AI coding agents.
  • Major trade-offs: slow cold release builds (1m 23s on M1 Max, 25m 46s on a €1.99 1-vCPU VPS) and no Livewire or Filament ecosystem yet (Inertia.js is the primary full-stack UI layer).

Strengths

  • + Highest confirmed sustainable throughput (6,750 RPS on M1 Max) with idiomatic ORM code.
  • + Lowest steady-state memory footprint (83.7 MB combined app + Caddy at 50 RPS; ~22 MB app-only).
  • + Zero garbage collector pauses and compile-time safety across routes, queries, and validation.
  • + First-party durable workflows, Inertia.js SSR, Reverb-compatible WebSockets, and Spatie Rust crates.

Trade-offs

  • − Cold release builds are genuinely heavy (1m 23s on M1 Max; 25m 46s on a 1-vCPU budget VPS).
  • − Public beta (0.1.0) — young package ecosystem; no Livewire, Filament, or Blade ecosystem.
  • − Steeper learning curve when stepping outside framework macros into Rust lifetimes/traits.

Reproduce Locally

Exact commands to build, migrate/seed, and serve the Laravel Rust Chirper benchmark repository against MySQL 8.4:

cargo build --release --locked
export APP_ENV=production APP_DEBUG=false DB_CONNECTION=mysql DB_MAX_CONNECTIONS=20
export DATABASE_URL="mysql://benchmark:[email protected]:3306/bench_laravel_rust"
./target/release/chirper-laravel-rust migrate --force
TOKIO_WORKER_THREADS=4 ./target/release/chirper-laravel-rust serve --host 127.0.0.1 --port 8080