In my benchmarking, Laravel Rust handled 1,774 successful requests per second in its best 10-second window with no recorded HTTP failures. Laravel PHP handled 97 in its best window.
I tested six frameworks: Laravel Rust, our new full stack Rust framework, alongside Laravel PHP, Django, Rails, Rocket, and Beego. I wanted to see how they handled rising traffic and what tradeoffs showed up in builds and wake times.
The headline numbers
I sent each framework a ramping, read-only workload from 1 request per second (RPS) to 2,000 over the course of 20 minutes with k6. For each framework, I picked the full 10-second window with the highest successful request rate and no HTTP failures recorded by k6.
Six frameworks ranked by successful throughput, from Laravel Rust at 1,774 requests per second to Laravel PHP at 97.
| Framework | RPS | p50 | p95 | p99 | RAM |
|---|---|---|---|---|---|
| Laravel Rust | 1,774 (best in column) | 65 (best in column) | 112 (best in column) | 137 (best in column) | 179M |
| 1,623 | 110 | 173 | 213 | 146M (best in column) | |
| 1,596 | 275 | 685 | 940 | 159M | |
| 253 | 121 | 264 | 283 | 252M | |
| 183 | 689 | 946 | 987 | 147M | |
| Laravel PHP | 97 | 1,995 | 2,634 | 2,707 | 481M |
Methodology
I built the same backend in each framework, following its conventions and idioms as closely as possible. Each version exposes two endpoints: /api/v1/chirps lists short posts called chirps and supports pagination; /api/v1/chirps/:id fetches a single chirp.
I ran the traffic and Cloud build tests in Canada Central. All local build times come from an M4 MacBook Pro. I measured wake-from-sleep times across nine Laravel Cloud regions. The benchmark repository contains the app implementations and k6 configuration. The apps are intentionally simple to make comparison between them easier, results for more complex apps will be different to what you see in this post.
In all HTTP traffic tests, 80% of requests went to the listing endpoint and 20% went to fetching single chirps. Each application is deployed onto a Pro 4 GiB instance, with a MySQL Pro 4 GiB instance for the database. k6 ran from a separate Pro 8 GiB instance with two virtual CPUs in the same region as the applications.
The MySQL dataset was intentionally small, only 200 chirps and 10 authors. I didn't want to test MySQL's performance, but I did want to test a workload that hit a database because not doing so felt too unrealistic.
If you find any mistakes in my testing please get in touch so I can fix them!
What happened as traffic increased
Throughput
The chart shows successful requests per second during the ramp. I've marked each framework's best 10-second window that contained no failed requests. Hover over or select a framework in the legend to highlight its line.
During the 20-minute ramp, Laravel PHP, Django, and Rails lost throughput earlier than Laravel Rust, Rocket, and Beego. Best qualifying 10-second windows, in successful requests per second: Laravel Rust 1,774, starting at 17 minutes 40 seconds; Rocket 1,623, starting at 16 minutes 10 seconds; Beego 1,596, starting at 16 minutes 0 seconds; Rails 253, starting at 2 minutes 30 seconds; Django 183, starting at 1 minutes 50 seconds; Laravel PHP 97, starting at 1 minutes 10 seconds.
Highest RPS without failing requests
Successful throughput fell sharply for Laravel PHP, Django, and Rails in the first few minutes of the test. Beego, Rocket, and Laravel Rust kept serving requests at higher rates for longer. None reached the target of 2,000 successful requests per second.
CPU usage
CPU usage climbed as the load increased. The three interpreted-language apps approached 100% CPU early in the ramp, around the time their successful throughput fell.
Laravel PHP, Django, and Rails first reached at least 95 percent CPU in samples centered around minutes 1 to 3. Beego reached that level around minute 14 and Laravel Rust around minute 18. Rocket stayed below 95 percent. Each point is an average between measurements.
CPU usage during the ramp
Latency
I set k6 to time out requests after five seconds. The heatmaps show successful responses only, so requests that timed out don’t appear. Darker red means more successful responses at that time and latency.
As the ramp progressed, some frameworks completed fewer requests, while others kept responding but took longer.
Latency
Each panel plots elapsed time against latency in milliseconds on a logarithmic scale. Darker shading indicates more successful responses per 10-second window and latency band.






Latency stayed fairly consistent for Laravel Rust and Rocket until they came under heavier load. Then it rose and split into two bands.
The raw data showed me where the bands come from: late in the ramp, listing chirps was slower than fetching a single chirp in both apps. In the final minute, Laravel Rust’s median was about 950 ms for feed requests and 660 ms for single-chirp requests. For Rocket, the medians were about 1,000 ms and 530 ms.
Beego is a different story. Under heavy load, its response times spread out instead. I found a line in Go’s database/sql source suggesting Go randomly picks a waiting request when handing off a connection. My colleague Mateus found a GitHub issue discussing that behavior. I didn't fully confirm whether this is the explanation, so if you know more please email me!
Comparing frameworks under manageable load
The previous benchmark pushed these applications into overload, but how do things look in a steady state? I sent 50 RPS to all six applications for 5 minutes and recorded the results.
All six frameworks handled about 50 requests per second. Latency percentiles come from each framework’s busiest complete 10-second window. CPU and memory are the highest recorded values across the run.
| Framework | p50 | p95 | p99 | CPU | RAM |
|---|---|---|---|---|---|
| Laravel Rust | 62 | 93 | 117 | 4.2% (best in column) | 16M |
| 60 | 71 (best in column) | 86 (best in column) | 4.4% | 11M (best in column) | |
| 58 (best in column) | 78 | 104 | 5.2% | 18M | |
| 69 | 125 | 198 | 20.5% | 119M | |
| 60 | 82 | 104 | 28.1% | 111M | |
| Laravel PHP | 78 | 111 | 127 | 52.4% | 134M |
At 50 requests per second, only three successful responses took more than one second.
Latency
Each panel plots elapsed time against latency in milliseconds on a logarithmic scale. Darker shading indicates more successful responses per 10-second window and latency band.






Latency is comparable for all of the frameworks under manageable load, the key difference is CPU use.
At 50 requests per second, recorded CPU averages stayed around 52 percent for Laravel PHP, 28 percent for Django, 19 to 21 percent for Rails, and 4 to 5 percent for Beego, Rocket, and Laravel Rust.
CPU usage at 50 RPS
At a steady 50 RPS, all six frameworks have room to handle the load, but the compiled applications use much less CPU.
So, as with a lot of things in life, it comes down to money. If you can afford to keep enough servers running to serve your application’s load with an interpreted language, you'll be able to keep up with the compiled languages. It’s hard to ignore 18× higher throughput, though.
The framing I like best here is that it has never been easier to leverage the performance of a compiled language. With Laravel Rust, the concepts will be familiar to you even if the language isn't.
You also don’t have to choose one. On Laravel Cloud, a Laravel PHP app and a Laravel Rust app can run side by side in the same organization and attach to the same database, as long as they’re in the same region. You can keep most of your app in PHP and move the busiest parts to Rust if you want. Or gradually migrate as time allows.
Build times
Performance at runtime is one thing, what about build time?
I measured 100 cold builds per framework on Laravel Cloud in Canada Central, for 600 builds total. The chart shows build-phase time, not the full deploy time. The dots mark the medians, and the lines span the fastest to slowest build for each framework.
Laravel PHP had the shortest median cold build on Cloud. Laravel Rust had the longest.
Cold builds on Cloud
Dot: median. Line: fastest to slowest recorded build.
- Laravel PHPMedian: 27s. Fastest build: 12s. Slowest build: 1m 7s.
- DjangoMedian: 37s. Fastest build: 27s. Slowest build: 1m 1s.
- RailsMedian: 53s. Fastest build: 45s. Slowest build: 2m 27s.
- BeegoMedian: 1m 6s. Fastest build: 52s. Slowest build: 2m 54s.
- RocketMedian: 2m 10s. Fastest build: 1m 54s. Slowest build: 4m 40s.
- Laravel RustMedian: 3m 1s. Fastest build: 2m 30s. Slowest build: 6m 4s.
You are certainly paying a price to use the compiled languages, especially with Rust. Though it is worth keeping in mind that Rust is doing a lot of work at compile time: type checking, lifetime checking, borrow checking. There's a lot of information in the syntax of the language that helps you catch problems before you ship them.
These cold builds in Cloud aren't representative of what you can expect locally. I ran 100 cold and 100 incremental builds on my Apple M4 Pro (24 GB) and the feedback loop is quite tight.
Beego had the shortest median cold development build, followed by Rocket and Laravel Rust.
Cold local development builds
Dot: median. Line: fastest to slowest.
- BeegoMedian: 5.3s. Fastest build: 5.2s. Slowest build: 5.9s.
- RocketMedian: 16.3s. Fastest build: 15.8s. Slowest build: 21.9s.
- Laravel RustMedian: 19.4s. Fastest build: 18.9s. Slowest build: 22.4s.
Laravel Rust had the shortest median rebuild after the same small edit, reversing its position in the cold development builds.
Incremental local development builds
Dot: median. Line: fastest to slowest.
- Laravel RustMedian: 1.1s. Fastest build: 1.0s. Slowest build: 1.2s.
- RocketMedian: 1.7s. Fastest build: 1.2s. Slowest build: 1.9s.
- BeegoMedian: 1.8s. Fastest build: 1.7s. Slowest build: 2.0s.
The change I made to each app for the incremental builds was to add a /foo endpoint that simply returns 200 OK. A small change in an already small app, these timings will be longer in larger applications.
Wake from sleep
With scale to zero enabled, Laravel Cloud’s Flex compute can put your app to sleep after a configured period without an inbound request. Laravel Cloud doesn’t charge for app compute while it sleeps. MySQL Flex, Valkey Flex, and Flex workers for managed queues can scale to zero independently. Charges such as MySQL storage can continue.
When a request reaches a sleeping app, the platform has to wake the app before it can respond. I measured 100 wake-ups per framework in each of nine regions: 5,400 samples in total.
Laravel Rust and Beego tied for the shortest median platform restore time. Laravel PHP had the longest.
Wake-from-sleep latency
Dot: median. Line: percentiles 1 to 99. Ticks: 5th and 95th percentiles.
- Laravel RustMedian: 154ms. 1st-percentile restore time: 88ms. 99th-percentile restore time: 363ms. 5th percentile: 102ms. 95th percentile: 257ms.
- BeegoMedian: 154ms. 1st-percentile restore time: 89ms. 99th-percentile restore time: 397ms. 5th percentile: 105ms. 95th percentile: 259ms.
- RocketMedian: 156ms. 1st-percentile restore time: 95ms. 99th-percentile restore time: 604ms. 5th percentile: 112ms. 95th percentile: 291ms.
- RailsMedian: 259ms. 1st-percentile restore time: 191ms. 99th-percentile restore time: 694ms. 5th percentile: 209ms. 95th percentile: 388ms.
- DjangoMedian: 350ms. 1st-percentile restore time: 220ms. 99th-percentile restore time: 775ms. 5th percentile: 241ms. 95th percentile: 489ms.
- Laravel PHPMedian: 712ms. 1st-percentile restore time: 449ms. 99th-percentile restore time: 981ms. 5th percentile: 504ms. 95th percentile: 886ms.
In this test, the 95th-percentile platform restore time was 257 ms for Laravel Rust and 886 ms for Laravel PHP. That’s the time the platform spent restoring the app, not how long it took for its dependencies to wake or for a visitor to get a response. Select Refresh to compare the two delays.
Two simulated browser windows show Laravel Rust and Laravel PHP waking from sleep. Refresh starts both at once, and each window reveals its page when its restore finishes. Wake sounds are off by default. Use the Wake sounds button next to Refresh to hear a higher tone for Laravel Rust and a lower tone for Laravel PHP.
I'm not going to sit here and try to convince you this is the difference between a sale and a bounce. For some use cases, 886 ms is going to be just fine. But, again, 257 ms is now there for you if you need it.
The future of web development
Doing this work has had me thinking back to my early career. When I became a professional web developer in 2012, the industry was full of energy. Frameworks like Rails and Django made it easy to get a new software as a service (SaaS) business off the ground. Anything was possible! There’s a lot of similarity, to me, in the energy I see today around large language models (LLMs).
A lot of people no longer write code. The LLMs do it for us. The promise of interpreted languages like Ruby, Python and PHP was that they were easier for humans to write. They do more work for you at runtime, so less code needs to be written.
If humans aren’t writing code anymore, and LLMs can write however much code needs writing without getting tired or bored, does it make sense to use languages that pay a measurable price to accommodate us humans?
The calculations will be different for every organization. I can’t tell you what’s important to you. I don’t think it’s unreasonable to still want to leverage your decades of expertise in PHP. But I do think it’s nice that, if you do end up needing it, all of the familiar Laravel concepts are available to you in a language that could reduce your wake times and serving costs substantially.