Benchmarking PHP Webservers
This post completes the benchmarks for webservers. The last post compared the performance of various reverse proxies, this article benchmarks the execution of php scripts.
The setup is a simple php script which calls
phpinfo(). PHP is executed through php-fpm and it communicates with the webserver through a unix socket.
wrk generated requests for 10 seconds:
wrk -t2 -c100 -d10s http://localhost:8080
Here is the throughput:
And the latency, so how long the browser has to wait until it receives the requested site:
The same benchmarks were also run with https instead of http. HAProxy was used as a reverse proxy, so this should show similar results as before, just a bit slower.