From 11ca87b27ec339aad0e84efae97ab00da01ffea3 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Wed, 13 Sep 2017 18:44:55 +0200 Subject: [PATCH] ajout infos de perfs --- HowtoPHP.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/HowtoPHP.md b/HowtoPHP.md index e6f21138..ebe8e7e7 100644 --- a/HowtoPHP.md +++ b/HowtoPHP.md @@ -574,6 +574,33 @@ Fatal error: Maximum function nesting level of '100' reached, aborting! in [...] ~~~ +## Performance + +### mod_php VS Apache/FPM VS Nginx/FPM + +Fin 2016, voici nos résultats d'un test sur un serveur physique « standard » avec une [application Symfony de test](https://github.com/acseo/symfony-perf). +Nous avons utilisé `ab -n 1000 -c 100` (1000 requêtes dont 100 en parallèle) avec nos configurations système par défaut : + +~~~ +* Apache prefork FPM : + +Symfony hello ~105ms +Symfony form ~168ms + + +* Apache prefork mod_php : + +Symfony hello ~106ms +Symfony form ~170ms + + +* Nginx FPM : + +Symfony hello ~102ms +Symfony form ~164ms +~~~ + + ## HHVM