Laravel Go is a quarter slower than Laravel Rust. It rebuilds 35 times faster
Laravel Go served 1,318 req/s to Laravel Rust's 1,724 on one core in my rerun, then rebuilt in 2.9 s to Rust's 1 min 42 s. Here is the trade.
By Meet ModiLaravel's benchmark post has a paragraph where the author says he does not know why Laravel Go's response times spread out under load, points at one line in Go's standard library, and asks readers to email him if they know more. I found that line in Go 1.27.4. It is still there, and it does what he suspected: when a database connection frees up, Go hands it to a waiting request picked at random.
So, what is Laravel Go? It is a full-stack Go web framework from the Laravel team, released as a beta on December 2, 2026, one day after Laravel Rust. Taylor Otwell says it gives up a bit of raw speed against the Rust version for "very similar real-world speed" and much faster compiles. I built both from Laravel's public benchmark repo on a 2 vCPU GitHub Actions runner and load tested them on one pinned core. Laravel Go did 76% of Rust's throughput. It also rebuilt a release binary in 2.9 seconds, where Rust took 1 minute 42.
What is Laravel Go?
Laravel Go is Laravel's conventions in Go, without pretending Go is PHP. The launch post lists routing, middleware, sessions, auth, typed validation, models, migrations, queues, durable workflows, mail, WebSocket broadcasting and Inertia. Your app is an http.Handler, the request type embeds the standard *http.Request, and existing Go middleware plugs in. Models are plain structs with a model tag for relationships. Dependencies get wired once in services/services.go instead of a container, which is the most un-Laravel thing in it and probably the most Go.
The installation docs say what the launch post does not: beta, and "releases before 1.0 may include breaking changes to APIs and configuration". It needs Go 1.27 or later and defaults to PostgreSQL, with MySQL, MariaDB and SQLite one driver swap away. The Go module proxy shows v0.1.0 published at 17:44 UTC on December 2 and v0.1.1 six and a half hours later. Like the Rust version, new apps ship with AGENTS.md, CLAUDE.md and seven skills for coding agents.
Laravel Go vs Laravel Rust: Laravel's numbers
Sam Rose's benchmark post was edited on December 3 to add Laravel Go. Same setup as before: a paginated feed of 50 "chirps" with their authors and a single-chirp endpoint, 80% of traffic to the feed, one 1 vCPU instance per app on Laravel Cloud, its own MySQL 8.4, k6 ramping to 2,000 requests a second over 20 minutes. Best 10 second window with no failures:
- Laravel Rust: 1,774 req/s, p50 65 ms, p99 137 ms, 179 MB
- Rocket: 1,623 req/s
- Beego: 1,596 req/s, p50 275 ms, p99 940 ms
- Laravel Go: 1,294 req/s, p50 120 ms, p99 299 ms, 380 MB
- Laravel PHP: 97 req/s
Two things in there do not match the launch post's tone. "Very similar real-world speed" is 73% of Rust on their own numbers, and Laravel Go comes fourth, behind Beego, a plain Go framework. At a steady 50 requests a second the story is kinder: Laravel Go tied Beego for the best p50 of all seven at 58 ms, against 62 for Rust, at 7.2% CPU against 4.2%. The build numbers are where Go wins outright: a median cold build on Laravel Cloud of 1 min 4 s against Rust's 3 min 1 s.
I ran Laravel Go and Laravel Rust on one core
Same harness as my Laravel Rust run: the benchmark repo at its latest commit, a 2 vCPU AMD EPYC runner, MySQL 8.4.13 in Docker, each app pinned to CPU 0 with taskset, MySQL and k6 pinned to CPU 1. Go 1.27.4 and Laravel Go 0.1.1, built with the repo's exact command. Laravel Rust 0.1.0 with Rust 1.99.1. Both apps returned the same JSON, down to the byte count: 12,231 bytes for a feed page, 222 for one chirp. The k6 script is a closed loop with the 80/20 mix and a check that every feed page really has 50 rows.
# Laravel Go 0.1.1, DB_MAX_CONNECTIONS=40 as in the repo, pinned to CPU 0
$ CGO_ENABLED=0 go build -mod=readonly -trimpath -ldflags="-s -w" -o app .
$ taskset -c 0 ./app
$ k6 run -e VUS=16 -e DUR=30s closed.js
checks_succeeded...: 100.00% 39535 out of 39535
http_req_duration..: avg=11.84ms med=10.9ms p(95)=20.53ms p(99)=24.82ms
http_reqs..........: 39535 1317.533887/s
# Laravel Rust 0.1.0, DB_MAX_CONNECTIONS=20 as in the repo
$ taskset -c 0 ./target/release/chirper-laravel-rust serve --port 8002
$ k6 run -e VUS=16 -e DUR=30s closed.js
checks_succeeded...: 100.00% 51729 out of 51729
http_req_duration..: avg=9.04ms med=8.74ms p(95)=16.01ms p(99)=19.18ms
http_reqs..........: 51729 1724.143291/s1,318 against 1,724, so Go did 76% of Rust. At 64 virtual users it was 1,296 against 1,704, the same ratio with more queueing. Laravel's figure was 73% on arm64 machines in a cloud region, mine 76% on one x86 core, so the gap is not an artefact of their setup. The Rust number is higher than in my run yesterday (1,243) because this was a different runner. Only compare numbers from the same run.
Split by endpoint, 16 virtual users for 20 seconds each, the gap is wider on the cheap request than on the expensive one:
- Feed only (50 chirps with authors): Go 1,239 req/s, Rust 1,594 req/s. Go at 78%.
- Single chirp only: Go 2,111 req/s, Rust 3,342 req/s. Go at 63%.
That is the shape you get when a fixed cost per request matters more than the per-row work. Laravel Go runs every request through a global middleware stack (security headers, host check, CORS, maintenance mode, string trimming) before the handler, and the single-chirp handler does very little after that. I did not profile it, so that is a guess at where the time goes, not a measurement.
Why Laravel Go's latency spreads out under load
The benchmark post noticed that under heavy load, Rust's latency split into two tidy bands while Go's smeared out, and linked to a line in database/sql and a 2019 Go issue. Here is the same code in Go 1.27.4:
// src/database/sql/sql.go, Go 1.27.4, in putConnDBLocked
if req, ok := db.connRequests.TakeRandom(); ok {
// TakeRandom returns and removes a random element from s
// and reports whether there was one to take.
func (s *connRequestSet) TakeRandom() (v chan connRequest, ok bool) {
...
pick := rand.IntN(len(s.s))When every connection is busy, requests queue for one. When a connection comes back, Go gives it to a random waiter, not the one that has waited longest. Most requests are fine, and an unlucky few lose the draw again and again. Go issue 31708 from 2019 is titled "connection pool was originally FIFO, is now random, but should be LIFO". It is closed, and the code still picks at random.
If that is the cause, a smaller pool should hurt Go's tail more than Rust's, because more requests end up waiting in that random queue. So I set DB_MAX_CONNECTIONS to 4 on both apps and ran 128 and 256 virtual users, then 128 connections for 128 users:
# p50 / p99 / max, 30 s each, 80/20 mix
pool=4, VUS=256 go p50 183ms p99 574ms max 1.07s 1,241 req/s
rust p50 155ms p99 215ms max 309ms 1,666 req/s
pool=4, VUS=128 go p50 91ms p99 281ms max 547ms 1,253 req/s
rust p50 74ms p99 117ms max 214ms 1,712 req/s
pool=128, VUS=128 go p50 97ms p99 170ms max 377ms 1,273 req/s
rust p50 76ms p99 132ms max 1.16s 1,636 req/sWith 4 connections, Go's p99 was about three times its median. Rust's was 1.4 to 1.6 times. Give Go enough connections that nobody waits for one and the ratio drops to 1.75, about where Rust sits. Throughput barely moved in any of it. That fits Sam Rose's theory. It does not prove it: I did not patch database/sql to hand connections out in order and rerun, which is what would settle it.
The useful part does not depend on the proof. If you run Laravel Go, or any Go service on database/sql, size the pool so requests rarely queue for a connection, and watch p99 rather than the average. The average hides exactly this.
Laravel Go compile time vs Laravel Rust
This is the half of the trade Laravel Go was built for, and it holds up. Same runner, both apps cold, dependencies already downloaded, then the repo's own one-route edit from its incremental-builds branch:
# Laravel Go, release flags from the repo README
cold: 1:02.83 wall, 1.22 GB peak RSS -> app 32,383,136 bytes
+ /foo route: 2.89 s
dev build cold: 66.21 s, + /foo route: 3.60 s, dev binary 46.6 MB
build cache 414 MB + module cache 186 MB
# Laravel Rust, release profile (thin LTO, codegen-units = 1)
cold: 5:46.95 wall, 1.36 GB peak RSS -> 32,843,792 bytes
+ /foo route: 1m 42s
dev build cold: 2m 25s, + /foo route: 5.38 s, dev binary 393 MB
target/ 1014 MB (release only), 3.3 GB with dev, + 577 MB of crate sourcesRust's dev loop is fine: 5.4 seconds after a change, against Go's 3.6. The difference is the release build, the one your CI and deploy run on every push. 2.9 seconds against 1 minute 42 is 35 times, and on a cold runner 1 minute against almost 6. The final binaries are the same size, about 32 MB each, so "much less disk space" is about the build folders, not what you ship. There, Go needs about 600 MB to Rust's 1.7 GB for a release build, and Rust's debug build alone is a 393 MB file.
One thing I could not reproduce: Laravel's table gives Laravel Go 380 MB of RAM under peak load and 180 MB at 50 requests a second. On my runner the Go process sat at 30 to 36 MB resident after the load tests, close to Rust's 32 MB. Their number may count something the process RSS does not, and their machines are different. I do not know which, so I would not plan capacity on either figure.
What you can do with Laravel Go
- Put a Laravel-shaped app on Go's standard library and keep using any net/http middleware you already have, for tracing, auth or rate limits.
- Fan out independent queries in one handler with task.Run, which cancels the rest when one fails and turns a panic into an error instead of a crash.
- Run durable workflows (send a welcome email, sleep three days, check, follow up) on the queue workers you already run, with no separate orchestration service.
- Ship one binary with migrations compiled in, and run migrate from it on the server without the source tree.
- Point APP_URL at the right host and let the built-in TrustHosts middleware refuse forged Host headers, which protects password reset links.
On that last one, Laravel Go does the host check better than Laravel Rust did in my earlier run. It is documented in the middleware guide, the JSON error names the rejected host ("The host `evil.example` isn't trusted."), and the /up health route answers before any middleware, so a load balancer that calls the pod by IP still gets a 200. You still need APP_URL right: with it set to 127.0.0.1, a request for localhost got a 400.
The catch: what I'd wait on
- It is a two-day-old beta. v0.1.0 and v0.1.1 landed six and a half hours apart, and the docs warn of breaking changes before 1.0. Pin the version in go.mod and read the upgrade notes.
- "Very similar real-world speed" is 73 to 76% of Laravel Rust on this app, and behind plain Beego on Laravel's own chart. That is still more than ten times Laravel PHP. It is not a tie.
- Tail latency depends on your pool. Go's database/sql picks a random waiter, and with too few connections p99 tripled while the median barely moved. Measure p99 with your real pool size before you trust an average.
- Idle connections stay open. Laravel Go sets max idle equal to the pool size with a five minute idle timeout. When I ran both apps against one MySQL with 128 connections each, MySQL's default limit of 151 ran out and 1.56% of Rust's requests failed. Laravel Cloud pitches several apps on one database. Add up the pools.
- It needs Go 1.27. If your build images or distro packages are older, that is a toolchain upgrade before you write a line.
- The benchmark is still a toy. 200 rows, two read-only endpoints, no sessions, no writes. Laravel says so. Your app's gap between Go and Rust could be bigger or smaller.
- I did not try the CLI (installed with curl piped to sh), a fresh laravel new --go app, Postgres, Inertia, queues, workflows or auth. Everything here is the benchmark app on MySQL, on x86, with default GOMAXPROCS and GC settings.
Laravel Go or Laravel Rust?
On these numbers, the choice is less about speed than about how often you build. Both are an order of magnitude past Laravel PHP on this benchmark, and the 24% between them is less than most teams would gain by fixing one slow query. A 35x difference in release rebuild time shows up on every push, every preview deploy and every CI run. If your team already runs Go, or deploys many times a day, Laravel Go is the easier one to live with. If one hot path is CPU-bound and you can cache a gigabyte target folder, Laravel Rust is faster, and its latency stays tighter when the pool runs dry.
And if you are on Laravel PHP and only want speed, my Laravel Rust vs Laravel PHP rerun found most of the gap on the feed endpoint was Eloquent, not PHP. That fix needs no new language.
What is Laravel Go?
Laravel Go is a full-stack web framework for Go from the Laravel team, released as a beta on December 2, 2026. It brings Laravel's routing, validation, models, migrations, queues, workflows, mail, broadcasting and Inertia support to Go, built on the standard net/http package. It is MIT licensed, needs Go 1.27 or later, and defaults to PostgreSQL.
Is Laravel Go faster than Laravel Rust?
No, Laravel Rust is faster on throughput. Laravel's benchmark measured 1,294 requests a second for Laravel Go and 1,774 for Laravel Rust, and my rerun on one core measured 1,318 against 1,724. That is 73 to 76%. Laravel Go wins on build time instead: a release rebuild after one change took 2.9 seconds against 1 minute 42.
Is Laravel Go faster than Laravel PHP?
Yes, by more than ten times on Laravel's benchmark: 1,294 requests a second against 97 for Laravel PHP on Octane with FrankenPHP, one vCPU each. The benchmark is a small read-only JSON API with 200 rows, so a real app's gap will differ. Much of PHP's cost on that app is Eloquent model hydration, which the query builder avoids.
How long does Laravel Go take to compile?
About a minute cold on a 2 vCPU runner. The benchmark app's release build took 1 min 3 s from an empty build cache, and 2.9 s after adding one route. A dev build took 66 s cold and 3.6 s incremental. Laravel reports a 1 min 4 s median cold build on Laravel Cloud, and 8.7 s for a cold dev build on an M4 Pro.
Why does Laravel Go have high p99 latency under load?
Most likely its database connection pool. Go's database/sql hands a freed connection to a random waiting request, not the oldest one. In my test with 4 connections and 256 users, Go's p99 was 3.1 times its median against 1.4 for Rust. With 128 connections for 128 users the ratio fell to 1.75. Size the pool so requests rarely wait.
Is Laravel Go production ready?
Not by its own docs. Laravel Go is a beta, and the installation guide says releases before 1.0 may include breaking changes to APIs and configuration. Version 0.1.1 shipped six and a half hours after 0.1.0. It is usable for a new service if you pin the version, set APP_URL and the pool size deliberately, and expect upgrades to need work.
Is there a Go web framework like Laravel?
Yes, Laravel Go is now the official one, from the Laravel team itself. Before it, the closest options were batteries-included frameworks like Beego, or Gin and Echo plus separate libraries for the ORM, queues and auth. Laravel Go bundles those pieces with Laravel's names and conventions, on top of net/http, so standard Go middleware still works.
- Introducing Laravel Go, Laravel
- Laravel Rust: 18x the throughput of Laravel PHP (edited Dec 3 to add Laravel Go), Laravel
- laravel-framework-benchmarking-2026 (apps, build commands, settings), GitHub, laravel
- Laravel Go installation, Laravel Go documentation
- laravel/go-framework, the framework source, GitHub, laravel
- go.laravel.com versions, Go module proxy
- database/sql: connection pool was originally FIFO, is now random, but should be LIFO, GitHub, golang/go
- database/sql source, putConnDBLocked, Go source
More Posts
Redis TLS clients hang at connection 1024, and plain TCP never notices
Redis 8.0 to 8.12.0 with TLS can leave a client stuck in the handshake once the server passes 1024 connections. Fixed in 8.12.1, 8.10.4 and four more.
Chrome is about to distrust the CA that signs google.com
Chrome stops trusting ECDSA P-256 CA keys on March 15, 2027. Google Trust Services WE1 and WE2 are P-256, and 146 of 770 top sites I scanned chain to one.
My firewall allowed port 53. The packet landed on 9999
CVE-2026-139281 lets IPv6 fragments past an nftables firewall that uses conntrack. I reproduced it on Ubuntu's 7.0 kernel and tested two rules that stop it.