perf: Laravel for Rust and Go vs PHP, 315 load tests
Rust and Go ran in under 70 MB. PHP needed 300–400 MB.
opcache.jit changed nothing. Octane gave PHP 5×.
Full write-up with charts: https://lnkd.in/p/dW6cVxhs
Code: https://github.com/mertbag96/laravel-url-shortener-benchmark
#laravel #php #rust #go
LinkedInBenchmark Summary | Mert BağLaravel announced Laravel for Rust and Laravel for Go this week, so I built the same app three times to see how they compare. A URL shortener with click stats: Inertia + React, SQLite, the same spec and the same React pages in all three. Then I load-tested them: 7 server setups, 7 endpoints, concurrency from 1 to 200 connections, 3 repeats of every run. 315 runs in total. Redirects per second at 50 connections: 🦀 Rust: ~11,900 🐹 Go: ~10,200 🐘 PHP on Laravel Octane (FrankenPHP): ~3,900 🐘 PHP on…
commit cae8f25
Should I pick up go or rust? Go seems to be slightly out performing rust