Laravel PHP vs Go vs Rust: reading Punyapal Shah's CRUD benchmark
Punyapal Shah ran the same Laravel CRUD app in PHP, Go and Rust on one laptop. Rust won on latency and throughput, Go on memory and build times, and PHP had the shortest p99.
- comparison
- benchmark
- go
- php
On 3 December 2026, Punyapal Shah posted “final benchmarks for Laravel PHP vs GO VS RUST”: one Laravel CRUD app, built in all three frameworks and measured on the same laptop. Laravel’s own benchmark compared Laravel Rust with Laravel PHP and left Go out, so this table fills a gap.
Rust was fastest on a typical request. Go used the least memory and built far faster. PHP, oddly, had the shortest worst-case tail.
The setup
From the note under the results table:
- WSL2 on an Intel i7-12700H laptop.
- SQLite in WAL mode.
- 10 concurrent clients and 10,000 posts for the HTTP tests, unless marked otherwise.
- PHP on PHP-FPM with OPcache.
That’s a developer machine, not a server, and SQLite rather than MySQL or Postgres. Keep that in mind before applying any of this to production.
The HTTP numbers
These are Punyapal’s figures, copied from the post. The best result in each row is in bold, as in the original.
| Measure | PHP | Go | Rust |
|---|---|---|---|
| Median latency | 72.18 ms | 4.18 ms | 3.32 ms |
| p95 latency | 88.06 ms | 57.51 ms | 57.24 ms |
| p99 latency | 95.79 ms | 112.03 ms | 133.04 ms |
| Throughput | 135 req/s | 633 req/s | 869 req/s |
| Sort 100k, median | 307.31 ms | 14.21 ms | 5.89 ms |
| Idle RAM (RSS) | 237.5 MiB | 38.5 MiB | 56.0 MiB |
| Peak RAM (RSS) | 249.4 MiB | 87.1 MiB | 130.1 MiB |
Median and throughput
Rust’s median request took 3.32 ms, against 4.18 ms for Go and 72.18 ms for PHP. On throughput Rust served 869 requests a second, about 37% more than Go’s 633 and 6.4 times PHP’s 135.
That’s a long way from Laravel’s 18× figure for Rust over PHP. The tests aren’t the same, though: Laravel ran a read-only posts API on MySQL on identical Laravel Cloud instances, while this is a CRUD app on SQLite on a laptop. With one SQLite writer and only 10 clients, the database caps how far any framework can pull ahead.
The p99 tail
At p95, Go and Rust are effectively tied at about 57 ms. At p99 the order flips: PHP is best at 95.79 ms, then Go at 112.03 ms, then Rust at 133.04 ms.
So the compiled apps are very fast most of the time, but about 1 request in 20 waits nearly as long as an average PHP request. PHP is slow and steady: its p99 is only about 24 ms above its median.
The post doesn’t explain the tail. SQLite is the likely suspect. WAL mode lets readers run alongside a writer, but writes still go one at a time, so once the HTTP layer stops being the bottleneck, requests that write queue up behind each other. PHP is slow enough that the queue rarely forms. The same run on Postgres would show whether the frameworks or the database are to blame.
Sorting 100,000 items
This row is pure CPU work, with no database involved. Rust’s median was 5.89 ms, Go’s 14.21 ms and PHP’s 307.31 ms. That makes PHP about 52 times slower than Rust here, and Go about 2.4 times slower.
If your app does heavy work in the request itself, such as building a report or parsing a large import, this is the gap you’ll notice most.
Memory
Go wins here: 38.5 MiB idle and 87.1 MiB at peak, against 56.0 MiB and 130.1 MiB for Rust. PHP sits around 240 to 250 MiB, but Punyapal flags that its number is the combined RSS of the PHP-FPM workers, which can count shared memory pages more than once. The real figure for PHP is probably lower than the table suggests.
Build times
| Measure | PHP | Go | Rust |
|---|---|---|---|
| Cold compile | n/a | 18.96 s | 134.80 s |
| Immediate rebuild | n/a | 0.19 s | 56.78 s* |
| Release binary | n/a | 39.6 MiB | 50.0 MiB |
PHP has no compile step, so it has no numbers here.
This is Go’s strongest table. A cold build took 18.96 seconds against Rust’s 134.80, about seven times faster. An immediate rebuild took 0.19 seconds in Go and 56.78 seconds in Rust. The Rust rebuild figure carries an asterisk in the original table, and the post doesn’t say what it means, so treat that number with some care. Either way, the save-and-refresh loop is much faster in Go, which matches what Laravel said when it announced Go: a little less top-end speed than Rust, in exchange for much faster compiles and less disk space.
What it means for picking a framework
Rust makes sense if per-request latency, throughput or CPU-heavy work matter most and you can put up with slow rebuilds. Go gets you most of that speed with the lowest memory use and builds that feel close to instant, which for a lot of teams is the better trade. PHP was around 20 times slower on the median request here, but its latency barely moved under load, and for many apps 72 ms is fine.
This is one run on one laptop, and the post doesn’t link the app or the load-testing script. It’s still a useful second opinion next to Laravel’s numbers. If you’re choosing between the two compiled frameworks, the Laravel Rust vs Laravel Go guide covers the differences that don’t show up in a benchmark.
Is Laravel Rust faster than Laravel Go?
In Punyapal Shah's CRUD benchmark, yes, on the typical request: a 3.32 ms median against 4.18 ms, and 869 requests per second against 633. Go used less memory, compiled about seven times faster, and had a shorter p99.
How much faster than Laravel PHP were Go and Rust?
Throughput was 6.4 times PHP's for Rust and 4.7 times for Go. The median request was about 22 times faster in Rust and 17 times faster in Go. PHP still had the best p99 of the three, at 95.79 ms.
Why is this gap smaller than Laravel's own 18× figure?
The two tests differ. Laravel's ran a read-only API on MySQL on Laravel Cloud and reported the best failure-free window. Punyapal's ran a CRUD app on SQLite under WSL2 on a laptop, with 10 concurrent clients. Neither number is wrong; they measure different things.