Notes taken by Alexander Makarov, lead of Yii framework, CTO of Twindo.ai and a long term IT engineering manager.
- Official Yii updates: www.yiiframework.com
- Consulting: asapirl.com
Post #421
470

⏩ 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
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







