Laravel Rust Is Here: What the 18x Benchmark Really Measured
For fifteen years, "Laravel" meant PHP. On December 1, 2026, that changed. Laravel released Laravel Rust, a full web framework for the Rust language, now in beta. The launch post leads with a big number: Laravel Rust ha
For fifteen years, "Laravel" meant PHP. On December 1, 2026, that changed. Laravel released Laravel Rust, a full web framework for the Rust language, now in beta.
The launch post leads with a big number: Laravel Rust handled 18 times the requests per second of Laravel PHP, on the same app and the same server size. That number is real, but it measures one specific thing. This article explains what Laravel Rust is, how the benchmark was run, and who should try it now.
What Laravel Rust is
Laravel Rust is an open source framework that brings Laravel's ideas to Rust. It is MIT licensed and lives at github.com/laravel/rust. The repository was created on October 5, 2026, and had just over 1,000 stars the day after launch.
It is built on Axum (a popular Rust web library) and Tokio (Rust's most used async runtime). Laravel adds the pieces Axum leaves to you. The launch post lists:
- routing, middleware, validation, sessions, authentication and authorization
- an ORM, query builder, pagination, migrations, seeding and Redis
- queues with job chains and batches, plus a scheduler
- Inertia support for React, Vue and Svelte
- events and broadcasting that work with Laravel Reverb
- file storage, mail, and notifications over email, SMS and Slack
- testing fakes, database refresh and parallel test runs
- OpenTelemetry traces
The whole app compiles into one binary. There is no interpreter to install on the server and no boot step on each request.
If you have built a web app in Rust before, you know the usual first day: pick a router, pick an ORM, pick a queue library, then wire auth together. Laravel Rust's pitch is that you skip that day.
It is not a line-by-line port
Taylor Otwell, Laravel's creator, wrote a letter to the community on launch day. Two points stand out.
First, the speed of the build. He says he built Laravel Rust "over the last two months," with "heavy use of cloud agents." He also says it is not a "slop fork." According to the letter, he curated every API, convention and page of documentation himself.
Second, his reason. He asks how many new projects in 2027 and later will choose PHP, now that AI agents write more of the code. His answer is that Laravel is "a philosophy of web development," and the language is "an implementation detail."
He is also clear about PHP: Laravel PHP "is not going anywhere, and it is not entering maintenance mode." Weekly releases continue. The same launch added two new PHP tools for AI agents, Agent Kit and Converse.
What the code looks like
Laravel developers will recognize the shape. Here is a basic route from the routing docs:
use laravel::prelude::*;
pub fn routes(route: &mut Router) {
route.get("/greeting", async || "Hello World");
}
Route model binding works from the handler's signature:
use crate::models::User;
pub fn routes(route: &mut Router) {
route.get("/users/{user}", async |user: User| user.name);
}
Models are plain Rust structs with a #[model] attribute. This example is shortened from the models docs:
#[model]
pub struct Post {
pub id: i64,
pub user_id: i64,
pub title: String,
pub body: Option<String>,
#[default]
pub votes: i64,
pub published_at: Option<Timestamp>,
pub created_at: Timestamp,
pub updated_at: Timestamp,
#[belongs_to]
pub user: BelongsTo<User>,
}
And a query:
let posts = Post::query()
.filter(Post::votes.gt(100) & Post::published_at.is_not_null())
.order_by(Post::published_at.desc())
.get()
.await?;
This is the biggest change from Eloquent. In PHP, a typo in a column name or a wrong value type shows up when the query runs. In Laravel Rust, Post::votes is a typed column. The docs say that comparing it to a string "fails at compile time rather than failing at runtime." The build stops before the bug reaches production.
One more safety detail from the same docs: password hashes, remember tokens and encrypted fields cannot be serialized by default. The #[model] macro rejects them at compile time unless you mark them to be skipped. That blocks one common way secrets leak to the frontend.
How to try it
From the installation docs, you need Rust 1.99 or later, Node.js and Git. Then:
curl -fsSL https://laravel.com/install.sh | sh
laravel new example-app --rust
cd example-app
laravel migrate
laravel dev
laravel dev starts the app, a queue worker and the Vite frontend server together. The app runs at http://127.0.0.1:8000. New apps default to PostgreSQL, and you can switch to MySQL or SQLite with a Cargo feature flag.
One trap: Laravel Herd and the older Composer installer also install a laravel command. Run laravel --version and check that the output starts with Laravel CLI.
The benchmark: what was actually tested
The numbers come from a detailed benchmark post by Sam Rose at Laravel. He built the same small API in six frameworks: Laravel Rust, Laravel PHP, Rocket (Rust), Beego (Go), Rails and Django. He then ramped traffic from 1 to 2,000 requests per second over 20 minutes.
Best throughput with no failed requests, in requests per second:
- Laravel Rust: 1,774
- Rocket: 1,623
- Beego: 1,596
- Rails: 253
- Django: 183
- Laravel PHP: 97
So the 18x is 1,774 divided by 97. Before you quote it, here are the things worth knowing.
It is the vendor's own test. Laravel ran it on Laravel Cloud, to promote its own framework. To its credit, the code is public in a benchmark repository, and the author asks readers to email him about mistakes.
PHP was given a fair setup. A common trick in these comparisons is to run PHP in its slowest mode. That did not happen here. The repository says Laravel PHP ran on Octane with FrankenPHP, with 4 workers. That is the fast, modern way to serve Laravel.
The app is tiny. It has two read-only endpoints and a database with only 200 posts and 10 authors. The author says himself that "results for more complex apps will be different." Real apps spend more time waiting on the database and other services. A reasonable guess, which this benchmark did not test, is that the gap between languages gets smaller in those apps.
At normal traffic, speed was about the same. This is the most useful part of the post, and it gets less attention. At a steady 50 requests per second, all six frameworks answered in about 60 to 80 ms at the median. The big difference was CPU:
- Laravel Rust: 4.2%
- Laravel PHP: 52.4%
So for most apps, Laravel Rust will not feel faster to users. It will need fewer or smaller servers to serve the same traffic. The author says this directly: "it comes down to money."
The costs nobody puts in the headline
Build times. A cold build on Laravel Cloud took a median of 3 minutes 1 second for Laravel Rust. Laravel PHP took 27 seconds. Local development is better: after a small change, an incremental build took about 1.1 seconds on an M4 Pro laptop. But every deploy waits on the Rust compiler.
It is a beta. The docs warn that "releases before 1.0 may include breaking changes to APIs and configuration." Laravel plans to call it stable "after about six to eight weeks of feedback."
Your team must learn Rust. The Laravel concepts carry over. The borrow checker, lifetimes and Rust's error messages do not. The benchmark author suggests AI coding agents make this easier, since they write much of the code now. That may be true for writing code. Someone on the team still needs to read and review it.
The ecosystem is new. Laravel PHP has fifteen years of packages, tutorials and Stack Overflow answers. Laravel Rust has a few weeks.
Who should try it now
Good fit:
- Teams that already know Laravel and want to start a new, high-traffic service in a compiled language.
- Apps where server cost matters, such as APIs with a lot of steady traffic.
- Apps that scale to zero. Laravel Rust woke from sleep in a median 154 ms in the benchmark. Laravel PHP took 712 ms.
- Rust developers who are tired of wiring Axum, an ORM and a queue together by hand.
Wait for now:
- Existing Laravel PHP apps. Rewriting a working app for CPU savings rarely pays off. The benchmark post suggests a middle path: on Laravel Cloud, a PHP app and a Rust app can share the same database, so you could move only the busiest endpoints.
- Teams with no Rust experience and a deadline.
- Anything that must run on a stable 1.0 release in the next two months.
The bigger story
The framework itself is interesting. The reasoning behind it may matter more.
Both launch posts make the same argument. PHP, Ruby and Python became popular because they are easy for humans to write. If AI agents write more of the code, that advantage gets smaller. A compiled, strictly typed language starts to look better, because its compiler catches the agent's mistakes before they ship.
That is an argument, not a proven fact. But when the creator of the most popular PHP framework makes it in public, PHP developers should pay attention. Laravel's answer is to keep the Laravel conventions, so that what Laravel developers already know still applies.
The PHP framework is staying. Laravel Rust gives Laravel developers a second option if they need one.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.