Note: articles are for educational purposes and are not professional security advice — consult an expert for your specific needs.

Laravel Rust: Is It Really 18x Faster Than PHP?

In short

In Laravel's own test on a 1-vCPU server, Laravel Rust served 1,774 requests a second against 97 for Laravel PHP, but at a steady 50 requests a second the median response times were 62 ms and 78 ms, and the gap showed up as CPU: 4.2% against 52.4%. The official crate is laravel-rust, while the crate named laravel is an unrelated 2022 project. Laravel Cloud has no region in India, so hosting from India means a VPS.

Laravel Rust 18x benchmark thumbnail: a crate label under a magnifier, a speed gauge and a greyed-out decoy crate

Laravel's benchmark for its new framework reads like a race. The test pushed six web apps from 1 to 2,000 requests a second over 20 minutes. Laravel PHP hit its peak 70 seconds in. Laravel Rust, the Rust rebuild of Laravel released as a beta on 1 December, was still climbing at 17 minutes 40 seconds. That gap became the headline: 18x.

The same data tells a quieter story too. At a steady 50 requests a second, a visitor waited a median 78 ms for the PHP app and 62 ms for the Rust one. The real difference was the CPU bill. And if you try Laravel Rust today, the command most PHP developers would guess, cargo add laravel, installs the wrong thing: a 2022 deployment helper with no link to Laravel.

This piece reads Laravel's own benchmark repository, checks every crate on crates.io with "laravel" in its name, and covers what changes in your code, how to host it from India and whether to switch now.

What is Laravel Rust?

Laravel Rust is the Laravel framework rebuilt in the Rust language by the Laravel team, released as a first beta on 1 December 2026 and built on the Axum web framework and the Tokio runtime.

It is not a wrapper around PHP. It brings Laravel's ideas to Rust: routing, middleware, sessions, authentication, an ORM with migrations, queues, mail, broadcasting, Inertia and testing helpers. It also adds durable workflows, which Laravel's launch post calls "brand new in Laravel". The same post says Laravel Rust "is near feature parity to Laravel PHP", with the remaining gaps to close "within the coming weeks".

Your whole app compiles to one binary, with the database migrations built in. The installation guide asks for Rust 1.99 or later, Node.js for the frontend, and a new Laravel CLI. You install that CLI with a script from laravel.com, then run laravel new example-app --rust. New apps default to PostgreSQL, with MySQL and SQLite as options.

Taylor Otwell, who created Laravel, wrote in a letter to the community that he built it "over the last two months" and "made heavy use of cloud agents". The framework is open source under the MIT licence. Its code lives in laravel/rust-framework on GitHub, and the crate is laravel-rust, which went from version 0.1.0 on 29 November to 0.1.4 on 1 December.

Laravel plans to call it stable "after about six to eight weeks of feedback", according to its Laravel Cloud launch post. Counting from 1 December, that points to mid or late January 2027. Laravel PHP keeps going: Otwell's letter says it "is not going anywhere, and it is not entering maintenance mode", with weekly releases continuing.

Is Laravel Rust really 18x faster than PHP?

Only at the top of the load: in Laravel's test, Laravel Rust served 1,774 requests a second in its best 10-second window and Laravel PHP served 97, a ratio of about 18.3.

Sam Rose, a developer educator at Laravel, ran the test and published it as "Laravel Rust: 18× the throughput of Laravel PHP". Look at the word in that title: throughput, not speed. It measures how much traffic one small server can take before it falls over.

Here is how the numbers were picked. The load tool, k6, raised its request rate in a straight line from 1 to 2,000 a second over 20 minutes. For each app, Rose took the busiest full 10-second window that had no failed requests. TrickyWorld worked out what k6 was asking for at those moments, from the ramp settings in the repository:

  • Laravel PHP's best window started 70 seconds in, when k6 was offering about 118 to 134 requests a second. It served 97. Its median response time in that window was about 2 seconds, so the app was already overloaded.

  • Laravel Rust's best window started at 17 minutes 40 seconds, when k6 was offering about 1,767 to 1,783 requests a second. It served 1,774, with a median of 65 ms.

  • The post's CPU chart shows both servers close to full CPU by then.

So the honest reading is 1,774 vs 97 requests a second, on one vCPU, for a tiny JSON API. Two other compiled frameworks in the same test came close to Laravel Rust: Rocket, also written in Rust, served 1,623, and Beego, a Go framework, served 1,596. Rails reached 253 and Django 183. Most of the 18x is compiled code against interpreted code, not something only Laravel Rust does.

Was Laravel's benchmark fair to PHP?

It was mostly fair, because the PHP app ran on Laravel Octane with FrankenPHP and PHP 8.5, with a tuned worker count, which is the fast way to run Laravel rather than the slow default.

Laravel published the apps and the load scripts in a benchmark repository, so the setup can be checked line by line. These are the settings that shape the result:

Setting

Value in Laravel's test

Server for each app

1 vCPU, 4 GiB RAM, one copy, on Laravel Cloud in Canada Central

Database

Its own MySQL 8.4 server with 4 GiB RAM, same region

Data

10 authors and 200 short posts ("chirps")

Requests

80% list pages of 50 chirps, 20% single chirps

Laravel PHP

Laravel 13 on PHP 8.5, Octane with FrankenPHP, 4 workers

Laravel Rust

laravel-rust 0.1.0, Rust 1.99.1, 20 database connections

Load generator

k6 v2.3.0 on a separate 2 vCPU server, same region

The PHP side was tuned, not left on defaults. A comment in the app's Octane config file shows 2, 4, 8 and 45 workers were tried on the 1-vCPU server, and 4 gave the best tail latency. The Rust app got the same care: 10 and 20 database connections were compared.

Still, four limits matter when you read the result:

  • One vCPU. Both apps would get more done with more cores, and this test can't show how each one scales.

  • A tiny dataset. With only 200 rows, the database barely works. Real apps spend more of each request waiting on queries. That wait takes as long in Rust as in PHP, so response times move closer, but a Rust server keeps handling other requests while it waits and a PHP worker can't.

  • Octane, not PHP-FPM. Octane keeps the app loaded in memory between requests. Many servers and shared hosts run PHP through PHP-FPM instead, which boots the framework on every request. This test says nothing about those setups.

  • A first release. The Rust app used laravel-rust 0.1.0. Four releases have come out since.

Rose says as much in the post: "results for more complex apps will be different", and readers who find mistakes are asked to get in touch.

What happens at normal traffic?

At a steady 50 requests a second, both apps kept up and response times were close: a median of 62 ms for Laravel Rust and 78 ms for Laravel PHP, with the gap showing up as CPU instead.

This is the part of the benchmark most apps will recognise. Rose sent 50 requests a second to each app for five minutes. The numbers below come from the data behind the post's charts:

At 50 requests a second

Laravel Rust

Laravel PHP

Median response

62 ms

78 ms

95th percentile

93 ms

111 ms

Highest CPU

4.2%

52.4%

Highest memory

16 MiB

134 MiB

So a visitor would barely notice the difference, but your server would: at 50 requests a second, CPU use was about 4% vs 52%. Divide the CPU by the traffic and one request costs about 10.5 ms of CPU time on the PHP app and about 0.84 ms on the Rust one. That is the real saving: fewer servers, not faster pages. In the post's words, "it comes down to money".

Here is what that means in machines, using Laravel's own numbers. For 300 requests a second of that same small app, keeping each 1-vCPU server under 70% CPU, you would need about five servers for Laravel PHP and one for Laravel Rust. Real apps do different work per request, so treat that as a ratio, not a plan.

Two more results are in Rust's favour. On Laravel Cloud, where an idle app can sleep, the platform restored the sleeping Rust app in a median 154 ms, against 712 ms for PHP. And at the top of the ramp, the Rust app peaked at 179 MiB of memory against 481 MiB for PHP.

The bill comes at build time. A cold build on Laravel Cloud took a median of about three minutes for Laravel Rust and 27 seconds for Laravel PHP. On a fast laptop, Rose measured a first build of about 19 seconds and a rebuild after a small change of about 1 second, for this small app.

What changes in your code?

Your Laravel habits carry over, but the code becomes Rust: routes, validation and models look familiar, and many mistakes that PHP only reports at runtime now stop the build.

Take a small shop that stores products with a price in paise. In Laravel PHP, you register the routes and keep the validation rules in a form request:

// routes/web.php
Route::get('/products/{product}', [ProductController::class, 'show']);
Route::post('/products', [ProductController::class, 'store'])->middleware('auth');

// app/Http/Requests/StoreProductRequest.php
public function rules(): array
{
    return [
        'name' => ['required', 'max:120', 'unique:products,name'],
        'price_paise' => ['required', 'integer', 'min:100'],
    ];
}

In Laravel Rust, the routes look almost the same. The rules move onto a struct, and the struct must also say who may submit it:

// src/routes/web.rs
use laravel::prelude::*;

use crate::http::handlers::products;

pub fn routes(route: &mut Router) {
    route.get("/products/{product}", products::show);
    route.post("/products", products::store);
}

// src/http/handlers/products.rs
#[laravel::input(fills = Product)]
#[validate(authenticated)]
pub struct StoreProduct {
    #[validate(required, max_length(120), unique(Product::name))]
    pub name: String,
    #[validate(required, min_value(100))]
    pub price_paise: i64,
}

The handler then receives input that has already passed every rule. fills = Product means only the declared fields can reach the database, so a client can't slip in extra columns:

pub async fn store(
    Authenticated(user): Authenticated<User>,
    Valid(input): Valid<StoreProduct>,
) -> laravel::Result<Redirect> {
    let product = create!(Product { user: &user, ..input }).await?;

    Ok(redirect!(show, &product))
}

Models become structs with one field per column. A query that reads Product::with('user')->where('price_paise', '>=', 50000) in PHP looks like this in Rust:

let products = Product::query()
    .filter(Product::price_paise.ge(50_000))
    .order_by(Product::id.desc())
    .with(Product::user)
    .paginate(20)
    .await?;

Misspell price_paise in PHP and you find out when the query runs. In Rust, the build fails. The same goes for an input struct with no authorization rule: the validation guide says such a handler "doesn't compile". Relationships are never lazy-loaded, so you load them up front with with, which avoids N+1 queries. Views use Jinja-style templates through MiniJinja rather than Blade, and PHP packages don't come along.

One warning from the launch itself. The launch post's validation example writes max_length = 255. That was the syntax in version 0.1.0 only. From 0.1.1, released on 30 November, the macro wants max_length(255), and the framework's own tests expect the old form to fail with "expected `max_length(10)`". So code copied from the launch post won't build, even though the project's upgrade guide says patch releases "never require changes to your application". The compiler catches it, which is the point of Rust, but it shows how young the beta is.

Which crate is the official Laravel Rust crate?

The official crate is laravel-rust, owned on crates.io by Taylor Otwell and André Valentin; the crate named laravel is an unrelated 2022 project called "Laravel Zero Downtime".

The trap is the import name. The framework's Cargo.toml sets its library name to laravel, so every example starts with use laravel::prelude::*;. A PHP developer who sees that and types cargo add laravel gets the 2022 crate instead: version 0.1.4, published in May 2022, 15 lines of Rust and no build script. It is harmless today. But whoever controls that name controls what it installs next.

People are already landing on it. According to its crates.io page, the 2022 crate was downloaded 13 times on 1 December and 10 more times by 09:38 UTC on 2 December. In the three months before, it had 11 downloads. Some of those may be bots and mirrors, but the jump lines up with the launch.

Use one of these instead. Both point at the real crate:

[dependencies]
laravel-rust = { version = "0.1", features = ["database-postgres"] }

# or keep the short name, but rename the real crate
# laravel = { package = "laravel-rust", version = "0.1" }

Two more details help. crates.io treats a hyphen and an underscore as the same name, so laravel_rust is the same crate. And the new Laravel CLI doesn't come from crates.io at all: the install script downloads laravel-cli 0.3.0 from Laravel's GitHub releases and checks each file's SHA-256 hash before installing it.

How many other laravel crates have appeared?

A TrickyWorld census on 2 December at 09:54 UTC found 155 crates with "laravel" in the name: 26 owned by the two owners of laravel-rust, and 129 owned by other accounts.

The 26 are the framework and its supporting crates, such as laravel-rust-core, laravel-rust-http and inertia-laravel-rust. Of the 129 others, 120 appeared after laravel-rust was first published on 29 November. That is 120 new crates from 41 accounts in about two and a half days. 37 came before Laravel's announcement, and 48 in the 12 hours after it.

Most look like honest work: their descriptions say "port", "community" or "work in progress". But the names don't tell you who made them:

  • 23 are named the way Laravel names its own crates, such as laravel-rust-admin or laravel-rust-i18n.

  • 8 use the names of first-party Laravel PHP packages, such as laravel-sanctum, laravel-fortify and laravel-cashier. One account published 7 of them as ports.

  • Laravel's PHP package for passkeys is laravel/passkeys. On crates.io, laravel-passkeys and laravel-passkey belong to two different accounts, and neither is Laravel.

  • 10 sit at version 0.0.0, holding a name with little or no code yet.

This happens because crates.io has no vendor prefix. On Packagist, PHP's package index, laravel/fortify can only come from the laravel vendor: Packagist's rules say a vendor name is protected once a package uses it. crates.io works on a "first-come, first-serve" basis, and its team won't move a crate to someone else without the current owner's approval. A Rust proposal for optional namespaces, RFC 3243, was accepted, but its tracking issue is still open.

crates.io does scan new names for typosquats, but its checker only compares them with the 3,000 most popular crates, and a three-day-old framework isn't one of them. TrickyWorld also checked 99 common misspellings of laravel-rust, such as a dropped letter or two letters swapped. On 2 December, none of them existed.

Some publishers show how to do it better. Spatie, the Belgian company behind many popular Laravel packages, published 26 crates under a spatie- prefix, with their source in Spatie's GitHub organisation. You know who made them from the name alone.

Why does a wrong crate matter before your app runs?

Because building a Rust project runs code from its dependencies: Cargo runs each crate's build script and loads its procedural macros into the compiler, on your machine, before your app ever starts.

The Cargo book describes it plainly: a build.rs file in a package makes Cargo "compile that script and execute it just before building the package". That happens on cargo build, cargo check and cargo test. Your editor can do it too. rust-analyzer, the usual Rust plugin for VS Code and other editors, runs build scripts and procedural macros by default, according to its settings source.

TrickyWorld read the archives of all 120 new community crates in memory, without building or running any of them:

  • 48 have a build script and 4 are procedural macros, so 52 run code while you compile.

  • 106 depend on laravel-rust.

  • None of the 48 build scripts showed signs of starting other programs, opening network connections or reading the home folder. The only things flagged were reading environment variables and writing files, which is how a build script normally writes generated code into Cargo's output folder.

That is reassuring for today. The risk is the next version, a typo, or a name you trusted for the wrong reason. Laravel Rust packages can also add routes and database migrations to your app through a service provider, and migrate runs package migrations together with yours, per the packages guide.

Even the launch itself was met with suspicion. On 1 December, a Hacker News user asked whether Laravel Rust was "a legitimate launch, an elaborate prank, or a potential supply chain compromise", pointing to a GitHub account called taylororwell. That account was created in August 2026, has the bio "literally 1984" and holds no public repositories. The launch itself checks out: the posts are on laravel.com, the code is under the laravel organisation on GitHub, and the crate's owners match.

How do you check your crates before you build?

Resolve versions first, check names and owners, then compile: cargo generate-lockfile compiles nothing, and a free checker can read your Cargo files and ask crates.io who owns each laravel-named crate.

TrickyWorld wrote that checker for this article, laravel-rust-crate-check. It needs Python 3.10 or newer and nothing else. It treats a crate as official only when all its owners also own laravel-rust, and it warns you if the owners of laravel-rust ever change. Run it before your first build:

cargo generate-lockfile                       # works out versions, compiles nothing
python3 -m cratecheck check path/to/your-app  # reads Cargo.toml and Cargo.lock
cargo build                                   # only once the check is clean

A project that asked for laravel by mistake gets a clear error:

ERROR laravel: asks crates.io for the crate `laravel`, an unrelated project
      from 2022 ("Laravel Zero Downtime"). Laravel Rust is the crate
      `laravel-rust`, even though its code is imported as `laravel`.

It exits with code 1 on errors, so it can run in CI. On Laravel's own benchmark app it reports all 25 laravel-named crates as official. The same tool runs the census (census), looks inside a crate without building it (inspect) and checks look-alike names (typos). It has 83 offline tests that pass on Python 3.10 to 3.13. After the check, commit Cargo.lock and build with cargo build --locked, so new versions only arrive when you choose.

Can you host Laravel Rust in India?

Yes, on a VPS or cloud server in India, such as AWS's Mumbai or Hyderabad regions, but not on plain shared PHP hosting, and Laravel Cloud has no region in India.

Start with the hosting you may already have. Shared cPanel plans are built for PHP. cPanel's Application Manager can run Ruby, Python and Node.js apps through Phusion Passenger, and only if your host turns it on. A Rust binary isn't on that list. Laravel Rust's deployment guide expects a server where a process manager such as systemd keeps the binary running and restarts it.

On a VPS, the setup is simple. You copy the compiled binary to the server with three folders, public/, resources/views/ and storage/, and run it behind Nginx or Apache. The app listens on 127.0.0.1:8000 by default. Build on a Linux machine or in CI that matches your server, so the server itself never needs Rust.

Watch the Rust version if you build on Ubuntu. Laravel Rust needs Rust 1.99, released on 1 October 2026. Launchpad lists Ubuntu 26.04 LTS's default rustc as 1.93.1 and Ubuntu 26.10's as 1.97.1, so an apt install is too old. The Cargo book says Cargo reports that as an error. Install Rust with rustup, as Laravel's guide says.

What about Laravel Cloud, which Laravel's docs call "the best place to run" these apps? Its API reference lists 11 regions on 2 December 2026: three in North America, four in Europe, one in the UAE and three in Asia-Pacific (Singapore, Sydney and Tokyo). There is no region in India. The nearest are Singapore and the UAE. AWS, which uses the same region codes, has two Indian regions, Mumbai (ap-south-1) and Hyderabad (ap-south-2), per its region list.

You don't have to move a whole app either. On your own server, Nginx or Apache can send one busy, stateless path, such as a public /api/search endpoint, to the Rust binary and everything else to PHP-FPM. Laravel's benchmark post suggests the same idea for Laravel Cloud, where PHP and Rust apps in one region can share a database.

Should PHP developers switch to Laravel Rust now?

Not for production yet: Laravel Rust is a 0.1 beta that Laravel expects to call stable after six to eight weeks, and its syntax already changed once between patch releases.

It is worth trying now if you fit one of these:

  • You want to learn Rust with patterns you already know, such as routes, form validation, Eloquent-style models and queues.

  • You run a side project or an internal tool on a VPS, where a broken beta costs little.

  • One endpoint in a PHP app eats most of your CPU, and you can run it as a separate service.

Wait if your app lives on shared hosting, depends on PHP packages such as Filament, Livewire or Nova, or your team has never shipped Rust. Remember the build times too: minutes instead of seconds on every deploy.

Plenty of developers in India are asking the same thing. On Google Trends for India, over the week to 2 December, "rust" became the third most common search related to "laravel", behind "php" and "php laravel", and it was marked as a Breakout query.

The bigger question is the one Otwell asked in his letter: "how many ambitious, net-new projects in 2027 and beyond are going to choose PHP?" His answer is to offer both. If you write PHP, nothing forces a move today. Laravel PHP gets weekly releases, and its Octane setup already handled about 97 requests a second on a single vCPU in Laravel's own test.

What should you watch next about Laravel Rust?

Watch for the stable release in January, a fixed example in the launch post, any change in who owns laravel-rust, crates.io namespaces and a Laravel Cloud region in India.

If you run Laravel PHP today, two related TrickyWorld guides cover the security side of your current stack: why PHP2Shell fixes need patched workers, which matters for long-running Octane and FrankenPHP workers, and quantum-safe encryption in Laravel. For more on poisoned packages, see how malware hid in Hugging Face model files, and for Rust beyond the web, how Rust is moving into AI inference.

Laravel Rust at a glance: 1,774 vs 97 requests a second on one vCPU, about 4% vs 52% CPU at 50 requests a second, the official crate is laravel-rust, and Laravel Cloud has no region in India

Laravel Rust is a serious beta with a real speed story, but the speed is mostly about cost. Check the crate name, check the owners, and let the compiler, not a blog post, tell you what the current syntax is.

FAQ

Frequently asked questions

Is Laravel Rust free to use?

Yes. Laravel Rust is open source under the MIT licence, and its crate is laravel-rust on crates.io. Laravel Cloud, the hosting Laravel recommends, is a paid service, but the compiled app runs on any Linux server you control.

Does Laravel Rust replace Laravel PHP?

No. Taylor Otwell's letter to the community says Laravel PHP is not going anywhere and is not entering maintenance mode. Both frameworks will be developed in parallel, and Laravel PHP keeps its weekly releases.

Which Rust version does Laravel Rust need?

Rust 1.99 or newer. Install it with rustup, as Laravel's installation guide says. The default rustc on Ubuntu 26.04 LTS is 1.93.1, and Cargo refuses to build a crate that needs a newer Rust than the one you run.

Why does cargo add laravel install the wrong crate?

The crate named laravel on crates.io is an unrelated project from 2022 called Laravel Zero Downtime. Laravel Rust's crate is laravel-rust. Your code still imports it as laravel, because the crate sets its library name that way.

Does Laravel Cloud have a region in India?

Not as of 2 December 2026. Laravel Cloud's API reference lists 11 regions, and the nearest to India are Singapore and the UAE. A VPS or cloud server in Mumbai or Hyderabad works instead.

Source

  1. Write-up Introducing Laravel Rust (Laravel blog) · laravel.com
Vishal

About the author

· Software & security engineer

GitHub · LinkedIn · X

Vishal writes Trickyworld's tutorials and interview-preparation guides on programming, databases, cyber security and AI. Vishal has been shipping production software long enough to have firm opinions about Python, PHP, Node.js, and JavaScript, and to have been wrong about each of them at least once. The work has run the whole stack: Drupal and Laravel applications, React front ends, MySQL and MongoDB underneath, Redis and Memcached for the things that had to be fast, Apache Solr for the things that had to be findable. That last part turned out to matter more than anyone expected. Tune a Solr index for a season, then watch a language model confidently retrieve the wrong document, and you recognise an old problem wearing new clothes. Most of what is hard about AI systems is not the model. It is retrieval, caching, latency budgets, and deciding what the system does when the answer comes back wrong — which is work he has been doing since well before anyone called it AI engineering. He plays a lot of games, which is less a hobby disclosure than an admission of where a good share of his engineering instinct came from. Real-time systems with a frame budget. State that has to stay coherent while a player does something no designer anticipated. The permanent question of what happens when the frame cannot finish in time. Those habits carry over more directly than they have any right to. He has written several books on programming, all built on the same conviction: most technical writing is unclear because the author never decided what to leave out. More from Vishal → · Editorial policy

#open-source #Laravel #performance #supply chain attack #PHP #web framework #rust

More on Laravel.

Latest articles

$ subscribe --weekly

Get the next tutorial in your inbox.

Programming, security and AI — the practical bits, no spam. Unsubscribe any time.