test: what limits Laravel for Rust and Go on a real page?
Recap: I built the same Laravel app (URL shortener, Inertia + React, SQLite) in PHP, Rust and Go and ran 315 load tests. Rust was 16× PHP-FPM on redirects, but only ~3× on the Inertia dashboard.
New: someone asked whether the dashboard was limited by CPU or SQLite. So I tested it.
Every dashboard request writes a new session row, and SQLite allows one write at a time. With database sessions, Rust used ~25% of the CPU and Go ~45% and with cookie sessions (no write), both roughly doubled their req/s and used 90%+ of the CPU. Also, fsync only shows up in the profiles with database sessions.
So the ceiling was the session write, not the framework.
Results and script: https://github.com/mertbag96/laravel-url-shortener-benchmark/tree/main/results/limits
First post: https://lnkd.in/p/dW6cVxhs
#laravel #php #rust #go #sqlite
GitHublaravel-url-shortener-benchmark/results/limits at main · mertbag96/laravel-url-shortener-benchmarkLoad tests of the same URL shortener built with Laravel for PHP, Rust and Go: 7 setups incl. Octane, 7 endpoints, 315 runs. - mertbag96/laravel-url-shortener-benchmark
commit 920b0de