-
Notifications
You must be signed in to change notification settings - Fork 13
Performance example #9
Comments
wrk not work and ab shows very bad performance (500/s) as far as i know. |
I plan on doing so. Please keep in mind that I have not done a release yet. I just got ZTS support working correctly. On master, the event loop is helping very little as the PHP execution is blocking the event loop. Also, I did some naive things to get the proof of concept functioning. For example, I buffer the entire response. Right now I am working on using hyper as the event loop and then sending each request to a Rust futures CPU pool. This would allow hyper to continue streaming requests and responses. At that point I will start profiling, fixing the bottlenecks and posting some performance examples. |
Update: with #10 I was getting 32k req/s using 4 threads on a GCP instance. This much more in line with what I was expecting. My next steps are to use my packet.net account to get a php fpm and a php rpm benchmark setup and then I will publish the results. |
Much better but still not amazing req/s I got. What did I do wrong? Just one line.
php-rpm
nginx php-fpm
|
I have also noticed that $_SERVER lacks key 'REMOTE_ADDR' . |
In the README.md you point out that the current way of using nginx + php_fpm is flow because of FastCGI. It would be a good idea to have a small section in the readme to show what kind of performance difference this implementation gives you. A simple screenshot of some results compering the same script running with nginx and your new implementation would be good. It would show the need and use of this project very simply.
The text was updated successfully, but these errors were encountered: