Tilly The Coder
Tilly The Coder
Laravel Rust is here. The 18× benchmark isn’t the most interesting part.
Tilly The Coder

Laravel Rust is here. The 18× benchmark isn’t the most interesting part.

Tilly The Coder
7 mins
This is the estimated time it takes to read the article.

2 December 2026 · Tilly the Coder

I’ve been using Laravel since version 5, and the first thing I wanted to know about Laravel Rust wasn’t how fast it was. It was whether I could sit down, build a normal Laravel-shaped app, and know where to put things. Where does a route go? How do I validate a form? What happens when a job fails?

Laravel released the first public beta of Laravel Rust on 1 December. It’s a separate, open-source framework written in Rust, built on Axum and Tokio. You get familiar ideas like route model binding, migrations, queues, authentication and Inertia, but you’re writing Rust and compiling the backend into a binary. You can deploy it yourself or use Laravel Cloud. And if you're wondering what this means for your existing apps, Taylor Otwell says Laravel PHP is staying.

Here’s what I’d actually try, and what I’d want to measure before moving anything important.

The interesting bit: Laravel conventions backed by Rust types

Think about a form for editing a project. There are three different questions hiding in it: who can submit it, what counts as valid input, and which fields the request can change.

In Laravel Rust, an input struct can declare its authorisation rule and the allowed fields. The handler receives typed, validated data. For a partial update, Sometimes<T> lets you distinguish “the client didn’t send this field” from “the client explicitly wants to clear it.” The compiler can make you choose an authorisation rule, but it can’t tell you whether you chose the right one. I’d still write the test that checks one user can’t edit another user’s project. Typed validation docs

Relationships are another good example. They aren’t silently lazy-loaded, so you ask for the relationships you need with with. If a feed needs each post’s author, that dependency is visible in the query rather than hidden in a loop that might issue a query per post. You can still write a slow query, but it’s harder to stumble into that particular N+1. Model relationships docs

The other big change is that async I/O runs through the stack. If one request is waiting for a database query or an API call, the runtime can work on other requests. That doesn’t make the query faster, and you still have to think about connection limits and CPU-heavy work. It gives you a way to handle lots of concurrent waiting without dedicating a thread to every request. Laravel’s architecture overview

One JSON endpoint, two ways

Here’s a tiny contract you can compare without setting up a database: GET /api/export-status returns {"status":"rendering","progress":42}. This is hard-coded so the example is about the response, not about how to run an export.

In Laravel PHP, add this to routes/api.php with the standard API prefix and Illuminate\Support\Facades\Route imported:

Route::get('/export-status', fn () => response()->json([
    'status' => 'rendering',
    'progress' => 42,
]));

In Laravel Rust, register the handler in your starter’s API routes. For the default Rust layout, this goes in src/routes/api.rs. Laravel registers that file via .api(routes::api::routes) and adds the /api prefix.

use laravel::prelude::*;
use serde::Serialize;

#[derive(Serialize)]
struct ExportStatus {
    status: &'static str,
    progress: u8,
}

pub fn routes(route: &mut Router) {
    route.get("/export-status", async || {
        Json(ExportStatus { status: "rendering", progress: 42 })
    });
}

The PHP closure hands Laravel an array. The Rust closure returns Json<ExportStatus>, with the fields and their types defined next to the route. If you change progress to a string without changing that contract, Rust flags it at compile time. You still need a test to catch a perfectly valid integer that is wrong for your app. Rust routing guide

Durable workflows are what I’d demo first

Imagine a video export: accept a job, start a render on another service, wait for the callback, then tell the user their download is ready. With ordinary jobs you can absolutely build that. You also need somewhere to persist progress, a way to join the callback to the original job, and a plan for retries.

Laravel Rust lets you express a flow like that as an async function with durable steps on your existing queue workers. It persists completed step results and can suspend a run until a timer or external signal arrives. A worker doesn’t sit there doing nothing until the render finishes. This is the feature I’d open a new project for, even if I never hit a throughput limit. Workflow docs

One important detail: if a worker starts the remote render and crashes before it records the result, Laravel can run that step again. Use an idempotency key so a retry doesn’t start a second paid render. The framework gives you a stable step key for that. That’s also the first failure I’d deliberately test in a demo.

What the 18× benchmark actually measured

In Laravel’s Cloud benchmark, Laravel Rust reached 1,774 successful requests per second and Laravel PHP reached 97. Each number is that stack’s best 10-second window without HTTP failures during a ramp. The workload was a small, read-only MySQL API for listing and fetching posts. The PHP entry used Laravel 13 with Eloquent, Octane and FrankenPHP. It wasn’t a PHP-FPM straw man, but it also wasn’t a test that swapped only the language. Benchmark code and configuration

My favourite comparison from that write-up is the quieter one. At a steady 50 requests per second, both stacks kept up. The reported p95 was 93 ms for Rust and 111 ms for PHP, while CPU usage was much lower on the Rust stack. So a service can see a real difference in compute headroom without its users seeing anything close to an 18× speedup. There’s a trade-off, too: the median cold Cloud build was 3 minutes 1 second for Rust and 27 seconds for PHP in that test. Full results

In a separate sandbox check, Symfony with Swoole and Laravel Rust behind Caddy both served a fixed 1,000 requests per second, with one vCPU per app, MySQL and gzip. Neither had HTTP errors or dropped iterations. The best-window p95 was 29.5 ms for Symfony and 35.4 ms for Laravel Rust behind Caddy. That’s neither a rerun of the Cloud ramp nor a measurement of either stack’s maximum throughput. In the sandbox’s Laravel PHP comparisons, switching from Eloquent to the query builder made a bigger difference than toggling JIT alone. If you’re deciding whether to rewrite an endpoint, profile the database access and response path before looking at a different language.

Should you try it if you already use Laravel?

Yes, on something small. With the current Laravel CLI and the prerequisites installed, scaffold an app with laravel new example-app --rust. The starter uses Inertia and defaults to PostgreSQL. Once the database is configured, run laravel migrate and laravel dev. If you already use Herd and --rust doesn’t work, check laravel --version and which executable your shell is picking up.

I wouldn’t move an established PHP app just to chase the benchmark. Check the packages you depend on first. Spatie already has early Rust ports of Media Library and Permission, but those are separate releases with their own maturity. A Composer dependency won’t come with you just because the framework has the same name. Starter apps also include skills for coding agents, which should help with unfamiliar conventions, but someone still has to review the code and test the unhappy path.

My first project would be a little export-status app: one form, one queue worker, one workflow with a callback, and one Inertia page to show the result. Then I’d kill the worker halfway through and see what happens. If that’s easier to build and reason about than the version I’d normally write, that’s a much better reason to use Laravel Rust than a number on a launch slide.