Meet Modi
Back to Blog
·10 min

I reran Laravel Rust's 18x benchmark. Most of the gap is Eloquent

Laravel Rust served 1,243 req/s to Laravel PHP's 86 on one core in my rerun. Swap Eloquent for the query builder and PHP reaches 543. Here is the gap.

By Meet Modi
LaravelRustPHPBackendPerformance

The first request I sent to Laravel Rust came back 400 Bad Request, with an HTML error page and nothing in the log. The app was fine. I had called it at 127.0.0.1, and out of the box it only answers to the host in APP_URL. Once that was sorted, Laravel's headline number held up: on one CPU core, the Rust version of their benchmark app served about 14 times the requests of the PHP one.

So, what is Laravel Rust? It is a new web framework from the Laravel team, released as a beta on December 1, 2026, that brings Laravel's routing, models, validation, queues and the rest to Rust, built on Axum and Tokio. Laravel says it runs 18x faster than Laravel PHP. I rebuilt both apps from their public benchmark repo on a 2 vCPU GitHub Actions runner and load tested them with k6. The 14x is real. Then I swapped one line of Eloquent for the query builder, and PHP went from 78 to 543 requests a second on the same endpoint.

What is Laravel Rust?

Laravel Rust is Laravel's conventions rewritten for Rust. The launch post lists routing, middleware, sessions, auth, typed validation, models with relationships, migrations, queues, mail, WebSocket broadcasting, Inertia, and something new to Laravel: durable workflows that can sleep for days and survive a deploy. Handlers are async functions. Models are structs with a #[model] attribute, and column names and relationships are checked by the compiler. The whole app, migrations included, compiles into one binary.

Taylor Otwell's claim is that it is "near feature parity to Laravel PHP", with the gaps closing "within the coming weeks". In a separate letter he says he built it over two months with heavy use of cloud agents, and that Laravel PHP keeps its weekly releases. New apps ship with seven agent skills in .agents/skills and an AGENTS.md, which tells you who Laravel expects to write most of the code.

The installation docs say it plainly: beta, and releases before 1.0 may break APIs and config. The crate went from 0.1.0 on November 29 to 0.1.4 on December 1. Five versions in three days. It needs Rust 1.99 or later and defaults to PostgreSQL, with MySQL and SQLite behind Cargo features.

The Laravel Rust benchmark, as published

Sam Rose's benchmark post builds the same tiny API in six frameworks: a paginated feed of "chirps" at /api/v1/chirps and a single chirp at /api/v1/chirps/{id}, 80% of traffic to the feed. Each app ran on one Laravel Cloud instance with 1 vCPU and 4 GiB, against its own MySQL 8.4, seeded with 200 chirps and 10 authors. k6 ramped from 1 to 2,000 requests a second over 20 minutes, and each framework got its best 10 second window with no failures.

  • Laravel Rust: 1,774 req/s, p50 65 ms, 179 MB
  • Rocket: 1,623 req/s
  • Beego: 1,596 req/s
  • Rails: 253 req/s
  • Django: 183 req/s
  • Laravel PHP: 97 req/s, p50 1,995 ms, 481 MB

The post is fair about its limits. It says the apps are "intentionally simple" and that real apps will differ, and it also publishes the numbers that do not flatter Rust: a median cold build on Laravel Cloud of 3 min 1 s for Laravel Rust against 27 s for Laravel PHP. At a steady 50 requests a second all six kept latency about level, and the difference was CPU: 4.2% for Laravel Rust against 52.4% for Laravel PHP. The benchmark repo answers the first question anyone from PHP asks. Yes, the PHP app ran on Octane with FrankenPHP, four workers, PHP 8.5, config and routes cached. Not php-fpm.

I ran the Laravel Rust benchmark on one core

I cloned the benchmark repo and ran the two Laravel apps unchanged on a 2 vCPU, 7 GB GitHub Actions runner. MySQL 8.4.13 in Docker, each app pinned to CPU 0 with taskset, MySQL and k6 pinned to CPU 1. Their k6 script insists on gzip, which Laravel Cloud adds in front of the app, so I wrote a smaller closed-loop script with the same 80/20 mix over the first four pages, checking that every feed response really had 50 rows.

# Laravel Rust 0.1.0, release build, pinned to CPU 0
$ taskset -c 0 ./target/release/chirper-laravel-rust serve --host 127.0.0.1 --port 8002
$ k6 run -e VUS=16 -e DUR=30s closed.js
    checks_succeeded...: 100.00% 37305 out of 37305
    http_req_duration..: avg=12.53ms med=11.78ms p(95)=22.41ms
    http_reqs..........: 37305  1243.154075/s

# Laravel 13 on Octane + FrankenPHP 1.14.0, 4 workers, pinned to CPU 0
$ taskset -c 0 php artisan octane:start --server=frankenphp --workers=4 --port=8001
$ k6 run -e VUS=16 -e DUR=30s closed.js
    checks_succeeded...: 100.00% 2584 out of 2584
    http_req_duration..: avg=185.88ms med=181.28ms p(95)=265.04ms
    http_reqs..........: 2584   85.699075/s

1,243 against 86, so 14.5x. At 64 virtual users the numbers barely moved (1,197 and 91 a second), only the latency grew: Rust's median went to 52 ms, PHP's to 699 ms. Resident memory after the runs was about 31 MB for the Rust process and about 150 MB for FrankenPHP. Laravel's numbers are higher across the board because their generator and database sat on separate machines. The shape is the same.

Where the 14x comes from

Next I split the traffic and hit each endpoint on its own, 16 virtual users for 20 seconds:

  • Feed only (50 chirps with their authors): Rust 1,143 req/s, PHP 78 req/s. 14.6x.
  • Single chirp only: Rust 2,430 req/s, PHP 417 req/s. 5.8x.

The gap is widest on the endpoint that builds the most objects. The PHP controller is one line, Chirp::with('author')->orderByDesc('id')->paginate(50), so my first guess was paginate()'s extra COUNT query. I switched it to simplePaginate(), which skips the count. 77 req/s. Not that.

Then I rewrote the feed with the query builder: the same 50 rows from a join, mapped to arrays, no Eloquent models.

// Experiment only. Same rows, no Eloquent models, no Carbon dates.
$rows = DB::table('chirps')
    ->join('authors', 'authors.id', '=', 'chirps.author_id')
    ->orderByDesc('chirps.id')
    ->offset(($page - 1) * 50)->limit(50)
    ->get(['chirps.id', 'chirps.text', 'chirps.author_id',
           'chirps.created_at', 'chirps.updated_at', 'authors.username']);

// k6, feed only, 16 VUs, 20 s
//   paginate(50), the original:    78.46 req/s, p50 202.69 ms
//   simplePaginate(50):            76.57 req/s, p50 203.76 ms
//   query builder, arrays:        542.65 req/s, p50  28.71 ms

Seven times faster, on the same PHP, the same Octane workers and the same database. It is not a like-for-like response: the dates come back as MySQL strings instead of ISO 8601, and the nested author has no timestamps. But it shows where the time goes. Most of a feed request in Laravel PHP is turning 60 rows into Eloquent models with Carbon dates, then turning them back into JSON. Rust is still about twice as fast as the stripped-down PHP, which is roughly what you would expect from compiled code against an interpreter. The other 7x is the ORM. It is the same lesson as the RAG pipeline where the vector database was innocent: the part everyone blames is not where the time went.

That changes the question. If your Laravel PHP app is slow on list endpoints, the query builder or API resources over plain arrays will buy back a lot of it without a rewrite. If you are starting something new and expect heavy traffic, Laravel Rust gets you both halves, the faster language and an ORM that builds structs at compile time instead of hydrating objects at run time.

Laravel Rust build times on a small machine

This is the part the 18x headline leaves out, and Laravel's post does not hide it. Here is the benchmark app on the same runner:

$ /usr/bin/time -v cargo build --release --locked
info: syncing channel updates for 1.99.1-x86_64-unknown-linux-gnu
    Finished `release` profile [optimized] target(s) in 8m 09s
	Percent of CPU this job got: 180%
	Maximum resident set size (kbytes): 1358956

$ ls -la target/release/chirper-laravel-rust
-rwxr-xr-x 2 runner runner 32844040 Dec  2 12:40 target/release/chirper-laravel-rust
$ du -sh target
1014M	target

# add one route that returns 200, rebuild
$ cargo build --release --locked
    Finished `release` profile [optimized] target(s) in 2m 20s

316 crates, 8 minutes cold, 1.36 GB of peak memory for the compiler, and 2 min 20 s to rebuild after a one-line change, because the benchmark's release profile uses thin LTO with one codegen unit. The PHP app's composer install took 10 seconds. A dev build is friendlier: 3 min 14 s cold (with crates already downloaded) and 4.9 s after the same one-route change, though the debug binary is 393 MB. Laravel's own local numbers (19.4 s cold, 1.1 s incremental) are dev builds on an M4 Pro. Your CI runner is not an M4 Pro, so cache the target folder, and keep release builds out of the edit loop.

The catch: what I'd wait on

  • It is a beta, and moving fast. Five crate versions in three days, and the docs warn of breaking changes before 1.0. The benchmark repo pins 0.1.0. Pin yours too.
  • Host checking is on by default. Any Host header that is not the one in APP_URL gets a 400, and with no APP_URL only localhost is accepted. A health check that calls the pod by IP, or a second domain, fails with a generic error page and nothing in the log at warning level. Set APP_URL before you deploy anything.
  • Build times are the new bill. An 8 minute cold build and a 2 minute rebuild on a 2 vCPU runner, and a gigabyte of target folder to cache. Laravel's own Cloud builds have a 3 minute median.
  • The benchmark is a tiny app. 200 rows, two read-only endpoints, no auth, no sessions, no writes. Laravel's post says so itself. A real app's numbers will be different in both stacks, and probably closer.
  • Much of the gap is Eloquent, not PHP. If you are moving a PHP app for speed alone, measure your hot endpoints with the query builder first. It took me one controller change to get 7x.
  • Two months old. The framework was written in two months with heavy use of AI agents, by its author's own account. It may well be fine. It has not had fifteen years of people finding the edge cases, and the security story for a brand new auth and session stack takes time to earn.
  • I did not try the Laravel CLI (it installs with curl piped to sh), Inertia, queues, workflows or Postgres. Everything here is the benchmark app on MySQL.

Should you use Laravel Rust or Laravel PHP?

If you have a Laravel PHP app that works, keep it. Taylor Otwell says it is not going into maintenance mode, and the cheapest speedup in my run was inside PHP. If you are starting a new service that has to take a lot of traffic on little hardware, and your team can live with Rust compile times and a beta that breaks things, Laravel Rust is the most Laravel-shaped way into Rust there is. Laravel Cloud also lets a PHP app and a Rust app share one database, so moving only the busy endpoints is an option.

Whichever you pick, test the endpoints you actually have. A list of 50 models with a relation is where both the ORM cost and pagination bugs like to hide.

What is Laravel Rust?

Laravel Rust is a full-stack web framework for Rust from the Laravel team, released as a beta on December 1, 2026. It brings Laravel's routing, models, validation, queues, mail, broadcasting and Inertia support to Rust, built on Axum and Tokio. Apps compile to a single binary. It is MIT licensed and needs Rust 1.99 or later.

Is Laravel Rust faster than Laravel PHP?

Yes, by a lot on Laravel's benchmark. They measured 1,774 requests a second against 97, and I measured 1,243 against 86 on one pinned core. Much of the gap is Eloquent, though. Rewriting the PHP feed endpoint with the query builder took it to 543 requests a second, about half of Rust instead of a fourteenth.

Is Laravel PHP being replaced by Laravel Rust?

No, according to Taylor Otwell. His letter on December 1, 2026 says Laravel PHP is not entering maintenance mode, weekly releases continue, and both frameworks will be developed in parallel. Laravel also shipped new PHP features the same week, including Agent Kit. Laravel Cloud can run a PHP app and a Rust app against the same database.

Did the Laravel Rust benchmark use Octane?

Yes. The benchmark repo's README says the Laravel PHP app ran Laravel 13 with Eloquent on Octane with FrankenPHP, four workers, PHP 8.5, with config and routes cached, on one vCPU and 4 GiB. So the 18x is not against php-fpm. It is against Laravel's fastest supported way to run PHP.

Why does Laravel Rust return 400 Bad Request?

Most likely the Host header does not match APP_URL. In my run with the benchmark app, Laravel Rust 0.1.0 accepted only the host in APP_URL, and only localhost when APP_URL was unset. Requests to 127.0.0.1 or any other name got a 400 page with nothing logged at warning level. Set APP_URL to the address clients actually use.

How long does Laravel Rust take to compile?

On a 2 vCPU GitHub Actions runner, the benchmark app's cold release build took 8 min 9 s across 316 crates, and a rebuild after adding one route took 2 min 20 s. Laravel reports a 3 min 1 s median on Laravel Cloud, and 19.4 s cold and 1.1 s incremental for dev builds on an M4 Pro laptop.

Is Laravel Rust production ready?

Not by its own docs. Laravel Rust is in beta, and the installation guide says releases before 1.0 may include breaking changes to APIs and configuration. The crate shipped five versions between November 29 and December 1, 2026. It is usable for a new project if you pin the version and expect to fix things on upgrade.

  1. Introducing Laravel Rust, Laravel
  2. Laravel Rust: 18x the throughput of Laravel PHP, Laravel
  3. laravel-framework-benchmarking-2026 (apps, k6 script, setup), GitHub, laravel
  4. A letter to the Laravel community, Laravel
  5. Laravel Rust installation, Laravel Rust documentation
  6. laravel/rust, the application skeleton, GitHub, laravel
  7. laravel/rust-framework, the framework source, GitHub, laravel

More Posts