Menu

1 / 6

Laravel PHP vs Laravel Go vs Laravel Rust, I ran Laravel's own benchmark on one core each

DEV Community: laravel·Fajar Hidayat·1 day ago
#kSP18ddu
#devtolaravel#devto#dev#laravel#rust
Long article (1308 words) — no AI summary yet.
Reading 0:00
15s threshold

Laravel shipped two new frameworks in two days. Laravel Rust on Dec 1, Laravel Go on Dec 2, both beta. They published numbers for Rust and nothing for Go. the Go announcement only says it gives up "raw top-end speed (barely!)".

"barely" isn't a number, so I ran all three myself. same repo Laravel used for their benchmark, same apps, same k6 script, each app pinned to one core.

TL;DR

peak with zero failed requests: Rust 1,825 req/s, Go 1,500 req/s, PHP 86 req/s . Go is ~17x PHP, Rust ~21x.

at normal traffic (50 req/s): PHP uses 61% of a core and 256 MB , Go and Rust use under 5% and ~30 MB.

build from scratch: Go 39 s, Rust 3 min 47 s . PHP has no compile step, composer install took 6 s.

rebuild after touching app code: Go 2.2 s, Rust 1 min 13 s .

PHP holds ~45 ms p95 up to ~71 req/s, then breaks: 887 ms at ~91 req/s. Go and Rust stay at 2 to 5 ms there.

higher up Rust stays flattest.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.