TGViewer
samdark blog ☕️ (Alexander Makarov) samdark blog ☕️ (Alexander Makarov) @samdark_blog · 1.62K subscribers
Post #421 477
Re-benchmarked different ways to serve PHP

Some time ago I've made some benchmarks to find out which server / mode is best to run Yii3 apps (applies to PHP in general as well). It is comparing FrankenPHP, RoadRunner, Rapira, PHP-FPM, FreeUnit.

Recently I've got back to these and rewrote benchmark to use wrkx which is way more efficient than k6 I've used initially improving things along the way and fixing config issues.

⭐️ Highlights

1. Rapira is impressive. If not constrained with DB access, it can reach 100K RPS on a single server without erroring. Twice more than FrankenPHP.
2. When DB is used, the difference between Rapira, FrankenPHP and RoadRunner is not huge. DB access limits RPS cap.
3. Worker mode is significantly more performant than classic mode. Almost 10x difference without DB, 2x difference with DB.
4. Hard to get past 8K RPS in classic mode even with great hardware. Worker mode is that way to build new apps.
5. There are some good features in each of the servers so performance alone can't be the only factor when choosing a server.

🔸Full report: https://yii3-benchmarks.github.io/app-api/
🔸Source: https://github.com/Yii3-Benchmarks/app-api

#php #frankenphp #rapira #roadrunner #yii #yii3 #benchmark #performance
  • 👍 5
  • 🔥 3
  • ❤ 1
  • 👀 1
More from @samdark_blog
  1. Sep 9, 2026Пыхник’26 — целая неделя PHP! С 28 сентября по 2 октября пройдёт Пыхник’26 — онлайн-конфер…
  2. Sep 8, 2026My name is Taras Soroka. I’m a CTO, digital transformation consultant, mentor, and the hos…
  3. Sep 8, 2026💬 Bjarne Stroustrup on AI Code will still be written by humans, and they will rely on abs…
  4. Sep 7, 2026🌬 TION MagicAir CO² sensor calibration via USB HID I have a Tion breather and a MagicAir…
  5. Sep 7, 2026🧰 Running Gitea container on older kernels I'm running Gitea at my Synology NAS which has…
  6. Sep 2, 2026🗓 Стачка PHP 2026 Уже несколько месяцев занимаюсь секцией PHP для Стачки. Смотрим заявки,…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →