# Laravel PHP vs Go vs Rust: benchmark and full comparison

> Laravel now exists in PHP, Go and Rust. We gather the official benchmark data (throughput, latency, CPU, RAM, builds and startup), what's still unmeasured for Go, and a guide to choosing.

URL: https://codegea.com/en/laravel-php-vs-go-vs-rust-benchmark-and-comparison
Web · 2026-12-02 · Derian Pinto

In two days Laravel went from a PHP framework to a family of three: [Laravel Rust](/en/laravel-rust-the-laravel-framework-now-in-rust) on 1 December 2026 and [Laravel Go](/en/laravel-go-the-laravel-framework-comes-to-go) on the 2nd. Same conventions, three languages. Here we bring together everything measurable and what isn't yet.

## First, a warning about the data

Laravel published a [benchmark](https://laravel.com/blog/laravel-rust-benchmark) with [its code](https://github.com/laravel/laravel-framework-benchmarking-2026) that measures **Laravel PHP, Laravel Rust, Rocket (Rust), Beego (Go), Rails and Django**. **Laravel Go is not included**: it came out a day later and Laravel hasn't published any numbers for it.

To give a Go reference we show **Beego**, a mature Go framework, measured in the same environment. It is not Laravel Go: we use it only as a guide to what Go achieves in this test. Laravel claims Laravel Go's speed is "very similar" to Laravel Rust's; until there are numbers, treat that as a promise.

## How it was measured

- The same API (paginated list 80%, detail 20%) against MySQL 8.4, with 200 records.
- Each app on a **1 vCPU, 4 GiB** server on Laravel Cloud (Canada), with no edge cache.
- Laravel PHP with **Laravel 13, Octane on FrankenPHP, PHP 8.5** and 4 workers.
- Load with k6: a ramp from 1 to 2,000 requests per second over 20 minutes; the best 10-second window with no errors counts. Plus a steady test at 50 requests per second.

## Throughput and latency under load

| Framework | Requests/s | Median | p95 | p99 | RAM |
| --- | --- | --- | --- | --- | --- |
| Laravel Rust | **1,774** | 65 ms | 112 ms | 137 ms | 179 MB |
| Rocket (Rust) | 1,623 | 110 ms | 173 ms | 213 ms | 146 MB |
| Beego (Go) | 1,596 | 275 ms | 685 ms | 940 ms | 159 MB |
| Rails | 253 | 121 ms | 264 ms | 283 ms | 252 MB |
| Django | 183 | 689 ms | 946 ms | 987 ms | 147 MB |
| Laravel PHP | 97 | 1,995 ms | 2,634 ms | 2,707 ms | 481 MB |

No framework reached 2,000 requests per second. The compiled group (Rust and Go) handles 16 to 18 times more than Laravel PHP on the same server.

## With normal traffic (50 requests per second)

| Framework | Median | p99 | CPU | RAM |
| --- | --- | --- | --- | --- |
| Laravel Rust | 62 ms | 117 ms | 4.2% | 16 MB |
| Rocket (Rust) | 60 ms | 86 ms | 4.4% | 11 MB |
| Beego (Go) | 58 ms | 104 ms | 5.2% | 18 MB |
| Rails | 69 ms | 198 ms | 20.5% | 119 MB |
| Django | 60 ms | 104 ms | 28.1% | 111 MB |
| Laravel PHP | 78 ms | 127 ms | 52.4% | 134 MB |

This is the table that matters most for most businesses: **with normal traffic, latency is similar across the board**. What changes is how much server each one needs to get there.

## Builds and startup

| Framework | Cold build (Cloud) | Cold local build | Local rebuild | Wake (median) |
| --- | --- | --- | --- | --- |
| Laravel PHP | **27 s** | — | — | 712 ms |
| Beego (Go) | 1 min 6 s | **5.3 s** | 1.8 s | 154 ms |
| Laravel Rust | 3 min 1 s | 19.4 s | **1.1 s** | **154 ms** |

PHP doesn't compile, so it deploys first. Go compiles much faster than Rust; Laravel says that's one of Laravel Go's advantages over Laravel Rust.

## Beyond speed

|  | Laravel PHP | Laravel Go | Laravel Rust |
| --- | --- | --- | --- |
| Status | Stable | Beta | Beta |
| License | MIT | MIT | Not stated in the announcement |
| Foundation | PHP 8.x, optional Octane | Standard `net/http` | Axum and Tokio |
| Learning curve | Low | Medium | High |
| Package ecosystem | Huge | Brand new | Brand new |
| Errors caught at compile time | Few | Quite a few | A great many |
| Deployment | PHP runtime | One binary | One binary |
| Shared hosting | Yes | No | No |

## Which to choose

- **Laravel PHP** for company websites, stores, CMSs and internal systems. With Octane and well-designed caching it comfortably handles the traffic of the vast majority of businesses, and you get the whole ecosystem.
- **Laravel Go** when traffic or server cost already hurts and you want a pragmatic switch: it compiles fast, takes weeks to learn and concurrency is native. See [Laravel Go vs Laravel PHP](/en/laravel-go-vs-laravel-php-which-to-choose).
- **Laravel Rust** when you need maximum performance and the strongest type safety, and your team can afford Rust's learning curve. See [Laravel Rust vs Laravel PHP](/en/laravel-rust-vs-laravel-php-which-to-choose).
- **A mix**: the core in PHP and only the busiest services in Go or Rust, sharing the database.

## What we still don't know

- Official Laravel Go numbers in the same benchmark.
- How they behave with real applications: Laravel itself warns that results change with more complex apps.
- How long Go and Rust will take to close the remaining gaps and reach 1.0.

We'll update this comparison when Laravel Go data is available.

## References

- [Introducing Laravel Rust](https://laravel.com/blog/introducing-laravel-for-rust) and [Introducing Laravel Go](https://laravel.com/blog/introducing-laravel-for-go) (laravel.com)
- [Laravel Rust: 18× the throughput of Laravel PHP](https://laravel.com/blog/laravel-rust-benchmark) (Sam Rose)
- [Benchmark repository](https://github.com/laravel/laravel-framework-benchmarking-2026)

---

PHP, Go or Rust for your next system? At Codegea we decide with you based on your traffic, your team and your budget. [Tell us about your project](/en/contact) or see how we build [custom software](/en/services/custom-software-development).
